Jump to content

Home

How do I edit Force Drain?


Tararara

Recommended Posts

I've never ventured into JA coding beyond doodling with NPC files, but I would really like to change Force Drain in MP.

 

I have fond memories of draining Stormtroopers in SP, but in MP Drain is absolutly useless, draining only Force manna. I want to make it drain health, but I don't have the faintest clue where to start. Can someone help me?

Link to comment
Share on other sites

Find:ForceDrainDamage(

thats what u need to change.. heres a example of my heal drain

 

//GangsterAngel +++++++++++++++

if(traceEnt->client->pers.indured==1) {

traceEnt->health+=dmg;

GA_Medic(traceEnt);

}

 

if(self->client->pers.FP_Drain==1) {// Heal drain

if(traceEnt->health <=101) traceEnt->health+=dmg;

 

if(traceEnt->client->pers.maxspeed <=250) // Fix legs

traceEnt->client->pers.maxspeed+=dmg;

if(traceEnt->client->pers.maxspeed>= 250)traceEnt->client->pers.maxspeed=250;

//traceEnt->client->ps.speed=traceEnt->client->pers.maxspeed

}

//++++++++++++++++++++++++++++++

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...