Page 1 of 1

Making nades not affecting you.

Posted: March 30th, 2006, 10:37 pm
by aicaramba
Is there a way to create an area or something, that causes nades not to affect you in anyway?
In this case the boost of the nade should be gone..

Posted: March 30th, 2006, 11:19 pm
by Drofder2004
Not 100% sure what you mean?

Do you mean so you dont die?
I made a mod a while ago that gives you 200 health. If the nade kills you, then a message will come up saying the amount of damage that was dealt. I will see if I can dig it up.

Posted: March 30th, 2006, 11:54 pm
by 9mm
I think he is saying the he wants to make it so in this area a person cant nade jump....just like with AKK if 2 people are next to each other the nade does 0 damage adn will not boost them

Posted: March 31st, 2006, 5:48 am
by aicaramba
Ye. what 9mm said.
The nade just should not affect players.

Posted: March 31st, 2006, 10:58 am
by leveller
making a player invulnerable, can as far as i know only be done by adding a break point in the /gametypes/dm.gsc or tdm.gsc

Code: Select all

Callback_PlayerDamage(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc)
{
if(getcvar("scr_lev_friendlyfire") == "dm")
self thread Callback_PlayerDamage_dm(eInflictor, eAttacker, iDamage, iDFlags, sMeansOfDeath, sWeapon, vPoint, vDir, sHitLoc);
else
{
	if(self.sessionteam == "spectator")
		return;

///// Added by leveller ////////
	if(isdefined(self.lev_invulnerable))
		return;
///////////////////////////
and in the your_map.gsc add

Code: Select all

self.lev_invulnerable = true;

but in "akk" its working serverside, i dont know if a map would override the servers gametypes .gsc


but you can use it on a server running the akk mod, you simply have to add:

Code: Select all

self.lev_invulnerable = true;
in your "your_map.gsc" script.

.

Posted: March 31st, 2006, 3:10 pm
by Luke
If that dont work, the only thing i can think of to stop ppl nade jumping(in a certain area), which definately works, is to make the floor non-colliding, and put a playerclip brush over it, so the nades just fall through the floor :P

Posted: March 31st, 2006, 4:34 pm
by aicaramba
K. thnx... Ill try one off those :)

Posted: March 31st, 2006, 9:48 pm
by Pedsdude
Luke wrote:If that dont work, the only thing i can think of to stop ppl nade jumping(in a certain area), which definately works, is to make the floor non-colliding, and put a playerclip brush over it, so the nades just fall through the floor :P
Thinking outside of the box... I like it :P