DayZ
1.24
Loading...
Searching...
No Matches
Ruger1022.c
Go to the documentation of this file.
1
class
Ruger1022_Base
: RifleBoltFree_Base
2
{
3
override
RecoilBase
SpawnRecoilObject
()
4
{
5
return
new
Ruger1022Recoil
(
this
);
//TODO
6
}
7
8
/*override int GetWeaponSpecificCommand(int weaponAction ,int subCommand)
9
{
10
if ( weaponAction == WeaponActions.RELOAD)
11
{
12
switch (subCommand)
13
{
14
case WeaponActionReloadTypes.RELOADSRIFLE_MAGAZINE_BULLET:
15
return WeaponActionReloadTypes.RELOADRIFLE_MAGAZINE_BULLET;
16
17
case WeaponActionReloadTypes.RELOADSRIFLE_NOMAGAZINE_BULLET:
18
return WeaponActionReloadTypes.RELOADRIFLE_NOMAGAZINE_BULLET;
19
20
case WeaponActionReloadTypes.RELOADSRIFLE_MAGAZINE_NOBULLET:
21
return WeaponActionReloadTypes.RELOADRIFLE_MAGAZINE_NOBULLET;
22
23
case WeaponActionReloadTypes.RELOADSRIFLE_NOMAGAZINE_NOBULLET:
24
return WeaponActionReloadTypes.RELOADRIFLE_NOMAGAZINE_NOBULLET;
25
26
default:
27
return subCommand;
28
}
29
30
}
31
return subCommand;
32
}*/
33
34
//Debug menu Spawn Ground Special
35
override
void
OnDebugSpawn
()
36
{
37
GameInventory
inventory
= GetInventory();
38
39
inventory
.CreateInInventory(
"HuntingOptic"
);
40
41
SpawnAttachedMagazine(
"Mag_Ruger1022_30Rnd"
);
42
}
43
};
GameInventory
script counterpart to engine's class Inventory
Definition
Inventory.c:79
Param3
Definition
EntityAI.c:95
RecoilBase
Definition
RecoilBase.c:2
Ruger1022_Base
Definition
Ruger1022.c:2
Ruger1022_Base::SpawnRecoilObject
override RecoilBase SpawnRecoilObject()
Definition
Ruger1022.c:3
Ruger1022_Base::OnDebugSpawn
override void OnDebugSpawn()
Definition
Ruger1022.c:35
Ruger1022Recoil
Definition
Ruger1022Recoil.c:2
scripts
4_World
Entities
Firearms
Rifle
Ruger1022.c
Generated by
1.10.0