XCanG

LongbowAvril.uc

Jan 21st, 2015
28
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class LongbowAvril extends UTMutator;
  2.  
  3. function InitMutator(string Options, out string ErrorMessage)
  4. {
  5.     if (UTGame(WorldInfo.Game) != None)
  6.     {
  7.         UTGame(WorldInfo.Game).DefaultInventory[8] = class'LongbowAvril.UTWeap_LongbowAvril';
  8.     }
  9.    
  10.     Super.InitMutator(Options, ErrorMessage);
  11. }
  12.  
  13. function bool CheckReplacement(Actor Other)
  14. {
  15.     if (Other.IsA('UTWeap_Avril') && !Other.IsA('UTWeap_LongbowAvril'))
  16.     {
  17.         ReplaceWith(Other, "UTWeap_LongbowAvril");
  18.     }
  19.    
  20.     return true;
  21. }
  22.  
  23. defaultproperties
  24. {
  25. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×