Tararara Posted September 23, 2004 Share Posted September 23, 2004 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 More sharing options...
Tinny Posted September 23, 2004 Share Posted September 23, 2004 hmm, try taking a look insde w_force.c at these 2 functions. forcedrain and forceshootdrain, those might help, and try look at the forcelightning and forceshootlightning code too, to see how force powers take away health. Link to comment Share on other sites More sharing options...
Tararara Posted September 24, 2004 Author Share Posted September 24, 2004 In all of that, I couldn't find anyplace where it specified what it was damaging. I supose it would help if I had some knowledge of C++, because the more I search the more confused I get. Link to comment Share on other sites More sharing options...
GangsterAngel Posted September 25, 2004 Share Posted September 25, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.