aboutsummaryrefslogtreecommitdiff
path: root/Northstar.Custom/scripts/vscripts/weapons/mp_weapon_toolgun.nut
blob: 94bd7429b839f72afe76dcd579e1a98542c94e68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
untyped
global function OnWeaponActivate_weapon_toolgun
global function OnWeaponDeactivate_weapon_toolgun
global function OnWeaponPrimaryAttack_weapon_toolgun
global function OnWeaponStartZoomIn_weapon_toolgun
global function OnWeaponStartZoomOut_weapon_toolgun
#if SERVER
global function OnWeaponNpcPrimaryAttack_weapon_toolgun
#endif

void function OnWeaponActivate_weapon_toolgun( entity weapon )
{
	CallToolOnEquipped( weapon.GetOwner(), weapon )
}

void function OnWeaponDeactivate_weapon_toolgun( entity weapon )
{
	CallToolOnUnequipped( weapon.GetOwner(), weapon )
}

var function OnWeaponPrimaryAttack_weapon_toolgun( entity weapon, WeaponPrimaryAttackParams attackParams )
{
	CallToolOnFired( weapon.GetOwner(), weapon, attackParams )
}

void function OnWeaponStartZoomIn_weapon_toolgun( entity weapon )
{
	CallToolOnAds( weapon.GetOwner(), weapon )
}

void function OnWeaponStartZoomOut_weapon_toolgun( entity weapon )
{
	CallToolOnUnAds( weapon.GetOwner(), weapon )
}

var function OnWeaponNpcPrimaryAttack_weapon_toolgun( entity weapon, WeaponPrimaryAttackParams attackParams )
{
	// do nothing for now, maybe make it launch nukes or something later that could be funny
}