Shiny vampire sucking teen blood
#1
I'm working on a new class for survivors. Vampire class. It will be able to suck blood from dead zombies(redead?).

Anyway, I want to know how to check if a player is touching an enemy players corpse.

Thanks Barata...

#2
Code:
if(level.players[1] isTouching(level.players[2]))
????
[Image: azuw.jpg]

#3
Lemon, try to do some research before asking on ItsMods. You could just have ctrl+f'd on the function list.
[Image: MaEIQ.png]

#4
there is a "isTouching" function???
lol
[Image: ctoc.jpg]

#5
I know the istouching function, what I want to learn is the corpse.

if(self isTouching(level.players[2].corpse))

???

#6
(06-06-2012, 16:08)Lemon Wrote: I know the istouching function, what I want to learn is the corpse.

if(self isTouching(level.players[2].corpse))

???

I think a ragdoll is created in the OnPlayerKilled event, look through it.
[Image: MaEIQ.png]

#7
It's called ".body" in MW2, and it's probably the same in cod4-BO.

#8
Code:
for ( i = 0; i < level.players.size; i++ ) { if ( self isTouching(level.players[i].body) && level.players[i].team == "axis" && self GetStance() == "prone" ) { self thread doSuck();

I've tried the the code abovei but it doesnt check if I'm touching the body or not, it only checks the stance properly.



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] More Blood like Frontlines. kidx 1 2,777 08-07-2012, 21:09
Last Post: Nekochan
  Can I add the first blood message from infected to another gametype? NooB_StalkeR 0 2,398 07-12-2012, 04:21
Last Post: NooB_StalkeR
  [Release] shiny Pack a Punch zombie camo & silver Colt Python reylobo14 10 17,319 09-08-2011, 09:43
Last Post: Wolfshagger
  do someone know where to find blood textures jamesbrown 4 4,319 06-27-2011, 09:56
Last Post: surtek

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.