Vampire knife mod :) stab someone and get health :O


(dutchmeat) #1

in g_combat.c goto :
G_Damage()
skip down and find something that looks like this:

// do the damage
if (take) {
     targ->health = targ->health - take;
     if ( targ->client ) {
         targ->client->ps.stats[STAT_HEALTH] = targ->health;
     } 

     if ( targ->health <= 0 ) {
         if ( client )
            targ->flags |= FL_NO_KNOCKBACK;
         if (targ->health < -999)
            targ->health = -999;
         targ->enemy = attacker;
         targ->die (targ, inflictor, attacker, take, mod);
         return;
     } else if ( targ->pain ) {
         targ->pain (targ, attacker, take);
     }
} 

under that add this (mind the cvar):


if (g_vampire.integer){
if(attacker->s.weapon == WP_KNIFE){

attacker->health = attacker->health + take;
if (attacker->health > 500) {
       attacker->health = 500;
}
}

}

([DS]-=Pencil=-) #2
    • What about making this Mod for all weapons and release it! :slight_smile:

Hope you Help

:slight_smile:


(dutchmeat) #3

:smiley: haha
you know why i did it for knife only ? because if you shoot with a mp40 or other fast shooting gun, your health will be enourmous…


([DS]-=Pencil=-) #4

so make a knife mod for knife cups :smiley:

Hope You Help

:slight_smile:


(dutchmeat) #5

what do you want ? that i compile this for 1.41 ?


([DS]-=Pencil=-) #6

Yes, but drop all other classes and weapons except the soldier.

Hope I Helped


(dutchmeat) #7

oh ok… i think i have to use my knife only thing then


([DS]-=Pencil=-) #8

I thought about a mod like “Vampire-Knife”-Mod and here are some ideas:

Background-Story:
From one Vampire-Knife Clan there died the Master-Vampire and he had 2 sons.
But both wanna have the thron so they fight each other.

The Knifes:
The knifes are special and only work with Vampire.

Basic Reliquiems:
There are Reliquims of both clans and to weaken the power of each other the have to steal each others reliquiem.

There are 2 different (Vampire)-Clans (you have to think of some names!)

  • Stabbing Teammembers brings speed
  • Stabbing the Enemy brings health

Skins: 2 Vampire-Clans (Black and White Suites and Vampire tooth)

Extra small Maps:
In the middle is a fighting area (always 1vs1) and there is a door on each side to get inside.


   --------->   !               !      <----------
            !    ----------------      !
X  ---------->  !               !      <----------  X
            !    ----------------      !
   ---------->  !               !      <----------

The --> (arrow) is a way and in the middle is the 1vs1-area. (only 1 Person from each team can get through.
The ! is a door.

X - the reliquiem

The doors outside of the arena are closed in the 1vs1 fight…
The other persons are staying before the arena and can watch the fight per camera.

You have to get the reliquiem and bring add it to yours.
After the 1vs1 is won for the Team which had stolen the reliqiuem the other team can knife each other and run fast to get the player with the reliquiem before he is at his own.

What do you think of this.
For the skins I maybe can get one to make some skins and for the menu, too.

Hope I Helped

:slight_smile:


(dutchmeat) #9

well let’s set up a team to make this :smiley:
join our forum please.


([DS]-=Pencil=-) #10

No sorry, i am not good in anything than giving Ideas, but i can try to get you a team up ( I ask some persons)

help you help


(elliotbelt) #11

well if you do that for all the weapons it would be a god mod the better you are the more health so the more you get close to been a god :smiley:
cous then you have to add some big super guns that do massive damage and dont take health or something :smiley:

back to the topic

its a cool idea by the way but it would be more fun if you make it a lycans (werewolf) vs vampire story cous it lookes just more fun and then the claw comes more on his places and if you have seen the movie underworld you no wat i mean :cool:

if i new how to do the weapon editing or mod stuff i would help to get experians on how to make mods but i am just a mapmaking freak :blah:


(WakingTheFallen) #12

i need to DL the game cause i have no idea what yall r talking about… yea… some 1 PM me and let a n00b kno whats going on! :???: