Making nades not affecting you.

Have questions about CoD/UO mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Locked
User avatar
aicaramba
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 2720
Joined: May 31st, 2005, 3:45 pm
Location: zeeland (N-Br), Holland

Making nades not affecting you.

Post by aicaramba » March 30th, 2006, 10:37 pm

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..
P.S.V. Kampioen!

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Post by Drofder2004 » March 30th, 2006, 11:19 pm

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.
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

9mm
CJ Donator
CJ Donator
Posts: 183
Joined: February 14th, 2006, 10:57 pm
Location: USA

Post by 9mm » March 30th, 2006, 11:54 pm

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

User avatar
aicaramba
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 2720
Joined: May 31st, 2005, 3:45 pm
Location: zeeland (N-Br), Holland

Post by aicaramba » March 31st, 2006, 5:48 am

Ye. what 9mm said.
The nade just should not affect players.
P.S.V. Kampioen!

leveller
CJ Fan
CJ Fan
Posts: 156
Joined: June 25th, 2005, 12:24 pm

Post by leveller » March 31st, 2006, 10:58 am

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.

.

Luke
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 1774
Joined: May 31st, 2005, 12:42 am
Location: Cornwall, UK

Post by Luke » March 31st, 2006, 3:10 pm

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

User avatar
aicaramba
Past/Inactive Team Member
Past/Inactive Team Member
Posts: 2720
Joined: May 31st, 2005, 3:45 pm
Location: zeeland (N-Br), Holland

Post by aicaramba » March 31st, 2006, 4:34 pm

K. thnx... Ill try one off those :)
P.S.V. Kampioen!

Pedsdude
Site Admin
Site Admin
Posts: 15914
Joined: October 15th, 2004, 7:18 pm
Location: UK

Post by Pedsdude » March 31st, 2006, 9:48 pm

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
Image
Image

Locked

Who is online

Users browsing this forum: No registered users and 1 guest