CityRP Documentation Repository

Weapon.RubberMP5

Less-lethal MP5 SWEP: a cw_mp5 firing 9mm rubber baton rounds, which bruise and disorient rather than wound. Only what makes this gun less-lethal is set here; the rest is inherited.

Classes

SharedWeapon.RubberMP5Source ☍

Less-lethal MP5 SWEP: a cw_mp5 firing 9mm rubber baton rounds, which bruise and disorient rather than wound. Only what makes this gun less-lethal is set here; the rest is inherited.

Fields

SharedSWEP.AttachmentsSource ☍

Declared for weapons.GetStored readers -- the locker sweeps Attachments to decide what a kit hands out -- but declaring them removes nothing: GMod merges table fields key by key, so the base's extra entries come back on the spawned weapon.

SharedSWEP.DamageSource ☍
SharedSWEP.DrawTraditionalWorldModelSource ☍

Unlike the base MP5's model, this one has no ValveBiped.Bip01_R_Hand bone to bonemerge onto, so it is placed by hand.

SharedSWEP.FireDelaySource ☍

Around two thirds of the base MP5's rate of fire.

SharedSWEP.FireModesSource ☍
SharedSWEP.MuzzleVelocitySource ☍

m/s

SharedSWEP.RubberRoundSource ☍

The flag the damage hook at the bottom of this file keys on.

SharedSWEP.WMSource ☍
SharedSWEP.WMAngSource ☍
SharedSWEP.WMPosSource ☍