Xpert wrote on Wed, 11 July 2012 15:58 |
Commands->Is_A_Star(obj) instead of (obj->As_SoldierGameObj())
|
so like this?
void ObjectHookCall(void *data,GameObject *obj) {
if (Commands->Is_A_Star(obj)) {
Attach_Script_Once(obj,"Parachute","");
}
else if (obj->As_VehicleGameObj()) {
Attach_Script_Once(obj,"Parachute","");
}
}
And this one is built into gmgame, and ssgm.
@ Iran so just take it out right?
@ Jonwil, Can you explain a little more?
This is what I did to replace it not sure if it's right or not.
void Parachute::Killed(GameObject *obj, GameObject *shooter) {
if (obj->As_VehicleGameObj()->Get_Occupant()) {
if (obj->As_VehicleGameObj()->Get_Occupant_Count()) {
}
else if (Commands->Is_A_Star(obj)) {
Commands->Enable_Collisions(obj);
if (Commands->Find_Object(pchuteID)) {
Commands->Destroy_Object(Commands->Find_Object(pchuteID));
pchuteID = 0;
}
if (Commands->Find_Object(floaterID)) {
Commands->Destroy_Object(Commands->Find_Object(floaterID));
floaterID = 0;
}
isFalling = false;
}
}
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch