[COD4] Suicide mod

Have a question about modding, modelling or skinning? Have a tutorial to post? Post here!

Moderator: Core Staff

Post Reply
User avatar
MORGOTH
CJ Newbie
CJ Newbie
Posts: 82
Joined: July 30th, 2009, 4:41 pm

[COD4] Suicide mod

Post by MORGOTH » March 27th, 2012, 9:12 pm

Hi everyone,
Yesterday me and my clan mates were bored and thought to try this new gametype that came to my mind. Basically you have to jump to your death to get +1 point/kill. The first who reach a choosen score wins. The funny thing is that you have to kill people that are going to the top place to jump and more time you kill people while they're falling or you try to stop their fall by placing yourself where they're landing.
We tried with promod just counting deaths... i have no idea how to make a mod like that, it just have to count death suicide as +1 and every other kill/death like nothing.
Any thoughts?

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

Re: [COD4] Suicide mod

Post by Drofder2004 » March 27th, 2012, 11:47 pm

Suicides are probably stored as a ".pers" variable/array, cba to check.

If failing that, you could just modify the callback_playerkilled to check for a suicide/fall death and just add +1 to a custom variable.
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

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests