Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Low Health
Re: Low Health [message #325404 is a reply to message #325403] Sun, 06 April 2008 10:24 Go to previous messageGo to previous message
renalpha is currently offline  renalpha
Messages: 1000
Registered: January 2007
Location: Holland - Zuid-Holland - ...
Karma:
General (1 Star)
reborn wrote on Sun, 06 April 2008 10:56

I would write a ::Damaged event for MDB_SSGM_Player and use the main part of Zack's function in there rather then attach this script to the player on ::Created.
Although attaching the script like:
Commands->Attach_Script(obj,"zbl_Health_Level","");

to the player object when he is ::Created should work (if the script works properly (which I think it does)).


i put the code over here
now it should work but still nothing.
void MDB_SSGM_Player::Created(GameObject *obj) {
	Commands->Attach_Script(obj,"zbl_Health_Level","");
	if (Settings->ForceTeam != -1) {
		if (Commands->Get_Player_Type(obj) != Settings->ForceTeam) {
			Change_Team(obj,Settings->ForceTeam);
			return;
		}
	}


the zbl_healt level script stuff is located in
scripts.cpp
scripts.h

the above code is located in gmscripts.cpp


Aircraftkiller wrote on Fri, 18 February 2011 23:50

I figured some people will still go LOLOLOL STARVING CATS LOOOOLZ UR A FAG or some dumb shit like that. Thanks for not disappointing! Smile

 
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
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
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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GDI Guard Tower(s)?
Next Topic: RenX - protected models?
Goto Forum:
  


Current Time: Sun Feb 23 18:24:18 MST 2025

Total time taken to generate the page: 0.01479 seconds