cityrp_breathalyser
Breathalyser SWEP. Lets an officer breath-test a player (primary fire) or themselves (secondary fire) for alcohol, cannabis, and a handful of drug-detection NSVars set by other plugins.
- ClientSWEP:DrawWeaponSelection(x, y, w, h, a)Source ☍
-
Draws the weapon selection icon, scaled to fit the available space.
Parameters
- xnumberLeft position of the selection slot.
- ynumberTop position of the selection slot.
- wnumberWidth of the selection slot.
- hnumberHeight of the selection slot.
- anumberAlpha to draw the icon with.
- ClientSWEP:RunBreathalyserChecks(ply) → booleanSource ☍
-
Runs the breathalyser detection checks against a target and reports the results via chat.
Parameters
- plyPlayerThe player being tested.
Returns
- booleanWhether alcohol or any tracked drug was detected.
- ClientSWEP.AnimPrefixSource ☍
-
Set the animation prefix and some other settings.
- ClientSWEP.IronSightAngSource ☍
- ClientSWEP.IronSightPosSource ☍
-
Set the iron sight positions (pointless here).
- ClientSWEP.NoIronSightAttackSource ☍
- ClientSWEP.NoIronSightFovChangeSource ☍
- ClientSWEP.Primary.DamageSource ☍
-
Set the primary fire settings.
- ClientSWEP.WepSelectIconSource ☍
-
Client-only concerns below. Left ungated: Material() and drawing calls are inert (not erroring) server-side.