CCrate
From Project X Wiki
Fields
class CCrate : CGObject { CCrateDesc desc }
How to spawn the crate with defined weapon
CCrateDesc cDesc; zero(&cDesc); cDesc.X = PosX; cDesc.Y = PosY; cDesc.type = CT_WEAPON; cDesc.wType = WCT_RANDOM; local wep1 = GS->GetWeaponByName("Minigun"); local t = new CCrate(Root, &cDesc, DT_NONE); t->desc.weapon = 100 * wep1->GetPageIndex() + wep1->GetWeaponIndex(); t->desc.wType = WCT_DEFINED; t->desc.amount = 5;
|