MCPcopy Create free account
hub / github.com/assaultcube/AC / transformtype

Method transformtype

source/src/entity.h:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49 entity() {}
50 bool fitsmode(int gamemode) { return !m_noitems && isitem(type) && !(m_noitemsnade && type!=I_GRENADE) && !(m_pistol && type==I_AMMO); }
51 void transformtype(int gamemode)
52 {
53 if(m_noitemsnade && type==I_CLIPS) type = I_GRENADE;
54 else if(m_pistol && ( type==I_AMMO || type==I_GRENADE )) type = I_CLIPS;
55 }
56};
57
58enum { GUN_KNIFE = 0, GUN_PISTOL, GUN_CARBINE, GUN_SHOTGUN, GUN_SUBGUN, GUN_SNIPER, GUN_ASSAULT, GUN_GRENADE, GUN_AKIMBO, NUMGUNS };

Callers 2

startgameFunction · 0.80
resetpickupsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected