byond - Modules - TypesVar Details - Proc Details

vehicle_mounted_weapon

This component allows gun mounting on vehicle types

Vars

mounted_gunThe gun mounted on a vehicle

Procs

on_attack_handBehaviour on attack hand. Puts the gun in the user's hands if they're riding the vehicle and don't have the gun in their hands.
on_attackbyBehaviour on attackby. When a user clicks the wheelchair with an ammo magazine they reload the mounted weapon.
on_buckleBehaviour on buckle. Puts the gun in the buckled mob's hands.
on_examineAdds stuff to the examine of the vehicle.
on_mousedropBehaviour on mouse drop. If the user has clickdragged the chair to themselves they will unload it.
on_unbuckleBehaviour on unbuckle. Force drops the gun from the unbuckled mob's hands.
on_weapon_dropHandles the weapon being dropped. The only way this should happen is if they unbuckle, and this makes sure they can't just take the gun and run off with it.

Var Details

mounted_gun

The gun mounted on a vehicle

Proc Details

on_attack_hand

Behaviour on attack hand. Puts the gun in the user's hands if they're riding the vehicle and don't have the gun in their hands.

on_attackby

Behaviour on attackby. When a user clicks the wheelchair with an ammo magazine they reload the mounted weapon.

on_buckle

Behaviour on buckle. Puts the gun in the buckled mob's hands.

on_examine

Adds stuff to the examine of the vehicle.

on_mousedrop

Behaviour on mouse drop. If the user has clickdragged the chair to themselves they will unload it.

on_unbuckle

Behaviour on unbuckle. Force drops the gun from the unbuckled mob's hands.

on_weapon_drop

Handles the weapon being dropped. The only way this should happen is if they unbuckle, and this makes sure they can't just take the gun and run off with it.