Jump to content

[Mod] Rx_Mutator_SBHSniper


JeepRubi

Recommended Posts

Rx_Mutator_SBHSniper

View File

*  This is an example of how to modify default player inventory.
*  This mutator replaces the primary weapon of the StealthBlackHand with a Sniper rifle.


Version 1.0.0

Rx_Mutator_SBHSniper.uc

Spoiler

/** 
 *  This is an example of how to modify default player inventory.
 *  This mutator replaces the primary weapon of the StealthBlackHand with a Sniper rifle.
 * */
class Rx_Mutator_SBHSniper extends UTMutator;

function bool CheckReplacement(Actor Other)
{
	if (Other.IsA('Rx_InventoryManager_Nod_StealthBlackHand'))
	{
		Rx_InventoryManager_Nod_StealthBlackHand(Other).PrimaryWeapons[0] = class'Rx_Weapon_SniperRifle_Nod';
	}
	return true;
}
 

 

Rx_Mutator_SBHSniper.u

Spoiler

Áƒ*žd  ¥     None    #         i     å  E  ¥              ï"âÌAŠ§z¶¿ô†F      #      ÷1              úv           Actor          ArrayProperty       
   BoolProperty          CheckReplacement          Class       
   Collision          Components          Core          Default__Rx_Mutator_SBHSniper          Default__UTMutator          Engine       	   Function          IsA       	   Movement          Mutator          Navigation          None          Object          ObjectProperty          Other          Package          PrimaryWeapons       
   renx_game          ReplacementPrimitive          ReturnValue          Rx_InventoryManager       )   Rx_InventoryManager_Nod_StealthBlackHand          Rx_Mutator_SBHSniper          Rx_Weapon_SniperRifle_Nod          ScriptText          Sprite          SpriteComponent          TextBuffer          utgame       
   UTMutator                     ôÿÿÿ                     ðÿÿÿ                     îÿÿÿ                     îÿÿÿ                     îÿÿÿ                     îÿÿÿ                     îÿÿÿ                     îÿÿÿ                      íÿÿÿ                      íÿÿÿ                     íÿÿÿ                     ìÿÿÿ                     ìÿÿÿ                     ìÿÿÿ                     ëÿÿÿ"                     úÿÿÿ                     öÿÿÿ                                                  
                                                  !       
              éÿÿÿ       !       "       ëÿÿÿ	       ýÿÿÿ                        (   ¥                              ùÿÿÿ                        ,   Í                              ûÿÿÿïÿÿÿ                       ù                                  ñÿÿÿ                     ¦   {	                                                éÿÿÿ     ,   !
                              õÿÿÿ              êÿÿÿ      4   M
                              øÿÿÿ                        4 å  
                                              óÿÿÿÿÿÿÿôÿÿÿòÿÿÿ      ñÿÿÿ                     éÿÿÿ   êÿÿÿéÿÿÿ    ÿÿÿÿ                               ÿÿÿÿ                               ÷ÿÿÿÿÿÿÿ           ïÿÿÿ           	   
  c   C   V      þÿÿÿ Å!       %.óÿÿÿ    	 ÿÿÿÿ ÿÿÿÿ òÿÿÿ':   S            ÿÿÿÿ    ñÿÿÿ          ÿÿÿÿÿÿÿÿ        	  ÿÿ                  úÿÿÿ                                      
                                            ÿÿÿÿ                                             ÿÿÿÿ                                ÿÿÿÿ               Í  /** 
 *  This is an example of how to modify default player inventory.
 *  This mutator replaces the primary weapon of the StealthBlackHand with a Sniper rifle.
 * */
class Rx_Mutator_SBHSniper extends UTMutator;

function bool CheckReplacement(Actor Other)
{
	if (Other.IsA('Rx_InventoryManager_Nod_StealthBlackHand'))
	{
		Rx_InventoryManager_Nod_StealthBlackHand(Other).PrimaryWeapons[0] = class'Rx_Weapon_SniperRifle_Nod';
	}
	return true;
}
 

 

 


 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...