DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
CZ61.c
См. документацию.
1
4class CZ61_Base : RifleBoltLock_Base
5{
6 void CZ61()
7 {
8 }
9
10
12 {
13 return new Cz61Recoil(this);
14 }
15
16 //some command is different for this weapon
17 override int GetWeaponSpecificCommand(int weaponAction ,int subCommand)
18 {
19 if ( weaponAction == WeaponActions.CHAMBERING)
20 {
21 switch (subCommand)
22 {
23 case WeaponActionChamberingTypes.CHAMBERING_ONEBULLET_UNIQUE_CLOSED:
24 return WeaponActionChamberingTypes.CHAMBERING_ONEBULLET_OPENED;
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( "PistolSuppressor" );
40
41 SpawnAttachedMagazine("Mag_CZ61_20Rnd");
42 }
43};
void CZ61()
Определения CZ61.c:6
override RecoilBase SpawnRecoilObject()
Определения CZ61.c:11
override int GetWeaponSpecificCommand(int weaponAction, int subCommand)
Определения CZ61.c:17
override void OnDebugSpawn()
Определения CZ61.c:35
basic CZ61 Skorpion submachine gun
Определения CZ61.c:5
Определения SkorpionRecoil.c:2
EntityAI CreateInInventory(string type)
creates entity somewhere in inventory
Определения Inventory.c:874
script counterpart to engine's class Inventory
Определения Inventory.c:79
Определения RecoilBase.c:2
WeaponActionChamberingTypes
Определения human.c:876
WeaponActions
actions
Определения human.c:816