Re: Making Buildings Invulnerable [message #165318 is a reply to message #165273] |
Thu, 04 August 2005 14:03 |
|
Whitedragon
Messages: 832 Registered: February 2003 Location: California
Karma:
|
Colonel |
|
|
void M00_BUILDING_EXPLODE_NO_DAMAGE_DAK::Created(GameObject *obj) {
Set_Max_Health(obj,2000);
Set_Max_Shield_Strength(obj,2000);
Commands->Set_Shield_Type(obj,"Blamo");
}
void M00_BUILDING_EXPLODE_NO_DAMAGE_DAK::Damaged(GameObject *obj, GameObject *damager, float damage) {
Commands->Set_Health(obj,2000);
Commands->Set_Shield_Strength(obj,2000);
Commands->Give_Points(damager,(float)(damage*-1.0),false);
}
Black-Cell.net
Network Administrator (2003 - )
DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )
Dragonade, Renegade's first server side modification
Lead coder (2005 - )
[Updated on: Thu, 04 August 2005 23:25] Report message to a moderator
|
|
|