Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » !para
Re: !para [message #471396 is a reply to message #471264] Thu, 12 July 2012 02:47 Go to previous messageGo to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

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;
	}
}


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: set object type for vehicles
Next Topic: Get_Damage_Bone_Name
Goto Forum:
  


Current Time: Fri Dec 20 13:39:09 MST 2024

Total time taken to generate the page: 0.00822 seconds