Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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...
Reply

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

#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]
Reply

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

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

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

???
Reply

#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]
Reply

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

#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.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  You teen party Dude 9 7,280 05-11-2015, 18:34
Last Post: Arteq
  [Request] More Blood like Frontlines. kidx 1 1,941 08-07-2012, 21:09
Last Post: Nekochan
  Can I add the first blood message from infected to another gametype? NooB_StalkeR 0 1,741 07-12-2012, 04:21
Last Post: NooB_StalkeR
  [Release] [Cumtest] Teen Vampire Mod Lemon 26 16,745 09-22-2011, 13:39
Last Post: Lemon
  [Release] shiny Pack a Punch zombie camo & silver Colt Python reylobo14 10 14,481 09-08-2011, 09:43
Last Post: Wolfshagger
  do someone know where to find blood textures jamesbrown 4 2,939 06-27-2011, 09:56
Last Post: surtek
  New Release - James Bond: Blood Stone 0 1,767 11-02-2010, 18:00
Last Post:
  New Release - Blood Bowl Legendary Edition 0 1,964 10-28-2010, 18:19
Last Post:

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.