Weapon related verbs.
Activates a weapon.
Use: ActivateWeapon(player,flex firerate,mode); mode is retrieved with GetSenderRef(); ,in the activated: message handler of the weapon cog.
Gives a weapon to player . Bins Ref
Use: AssignWeapon(player,bin);
Selects a weapon automatically. Used in JK when ammo runs out.
Use: AutoSelectWeapon(player,weaponint); Weaponint: 1=bryer, 2=ST rifle, etc etc...
Changes the fire rate of weapon.
Use: ChangeFireRate(player,flex rate);
Deactivates a weapon.
Use: DeactivateWeapon(player,mode); mode is retrieved with GetSenderRef();
Fires a projectile.
Use: FireProjectile(1,2,3,4,5,6,7,8,9,10);
?
? Not Used in JK
Gets the current weapon held by the player.
Use: (GetCurWeapon(player); Worked best with If statement: If(GetCurWeapon(player) == weapon_int)
Used for weapons that charge, such as the TD and Crossbow
Use: GetCurWeaponMode; Used most often in If Statement: If(GetCurWeaponMode() != 1)
Determines if the weapon picked up has a better priority than the one currently in hand, found in the POW &Weapon cogs.
Use: GetWeaponPriority(player,int_weapon-index,int_select-mode);
Selects a weapon . Bins Ref
Use: SelectWeapon(thing,bin);
Sets the current inventory weapon.
Use: SetCurInvWeapon(player,0);
Sets the current weapon. Bins Ref
Use: SetCurWeapon(player,bin);
Delays use of weapon
Use: SetFirewait(player,flex delay);