Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » teleport on poke
Re: teleport on poke [message #203895 is a reply to message #203884] Wed, 14 June 2006 15:41 Go to previous messageGo to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
buffymaniack wrote on Wed, 14 June 2006 15:40

cheers mate, that code created an admin message sent to all players, but i was able to change it to PM them instead. Your a real help.

Lol i dont wana get cocky so i won't expect reborn to help out, but if anyone knows how to do a death on poke thing, then help me out if u can. If you have any form of death script i can change it into a poke one, i'm just not sure how you would kill a person from the scripts.

Cheers buffymaniack


To kill someone you generally over-kill them by applying shrapnel damage to them, that is how the death crate works.

Commands->Apply_Damage(sender,99999,"Shrapnel",false);


Here is a poke and death script (although technically it is a poke and apply a shitload of damage script) that will let you define who it kills by team.

//script

void reb_death_poke::Poked(GameObject *obj,GameObject *poker)
{
	int x;
	x = Get_Int_Parameter("Player_Type");
	if (CheckPlayerType(poker,x))
	{
		return;
	}
	if (!Commands->Is_A_Star(poker))
	{
		return;
	}
				Commands->Apply_Damage(poker,99999,"Shrapnel",false);
}


//registrant


ScriptRegistrant<reb_death_poke> reb_death_poke_Registrant("reb_death_poke","Player_Type:int");


for the .h file


class reb_death_poke : public ScriptImpClass {
	void Poked(GameObject *obj,GameObject *poker);
};


If I was you I would start making your own .cpp and .h and put your scripts in there, so when new source codes are released you can port yours easily to the latest version.

Can I ask BTW what you are up to?



 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: SSAOW 1.5/Scripts.dll Problem
Next Topic: Renegade Destroyed Buildings
Goto Forum:
  


Current Time: Sat Sep 28 15:12:37 MST 2024

Total time taken to generate the page: 0.00818 seconds