CityRP Documentation Repository

core.plugins.bodybags.weapons.cityrp_scanner.cl_init

Functions

ClientSWEP:GetViewModelPosition(Pos, Ang) → Vector, AngleSource ☍

Offsets the view model so the kit sits lower and to the right.

Parameters

  • PosVectorThe view model's default position.
  • AngAngleThe view model's default angle.

Returns

  1. 1VectorThe adjusted position.
  2. 2AngleThe adjusted angle.
ClientSWEP:PreDrawViewModel(vm, wep, ply)Source ☍

Shrinks the view model before it draws.

Parameters

ClientSWEP:PrimaryAttack()Source ☍

Scanning is server-side; the client does nothing.

ClientSWEP:Reload()Source ☍

Clearing is server-side; the client does nothing.

ClientSWEP:SecondaryAttack()Source ☍

Printing is server-side; the client does nothing.

ClientSWEP:Think()Source ☍

No per-frame work.