How can i remove or decreased a fall demage *-* mountain kill me xd
Printable View
How can i remove or decreased a fall demage *-* mountain kill me xd
that was not the mountain........
f*ckin terrible raycasting using and f*ckin idiot who created the math to calculate the dmg...
btw.. search this
and modifyQuote:
void obj_ServerPlayer::OnNetPacket(const PKT_C2S_FallingDamage_s& n){
r3dOutToLog("Falling damage to %s, damage=%.2f\n", Name.c_str(), n.damage); CLOG_INDENT;
gServerLogic.ApplyDamage(this, this, GetPosition(), n.damage, true, storecat_INVALID);
}
or you can use NULL instead of nulldamage, or you can half the n.damage or something. :DQuote:
void obj_ServerPlayer::OnNetPacket(const PKT_C2S_FallingDamage_s& n){
float nulldamage = 0.f;
r3dOutToLog("Falling damage to %s, damage=%.2f\n", Name.c_str(), nulldamage); CLOG_INDENT;
gServerLogic.ApplyDamage(this, this, GetPosition(), nulldamage, true, storecat_INVALID);
}
Where we need to change that? which solution?. Does that completely remove fall damage or is that something else?.
warz solution and yes, 0.f is 0 damage, btw you can use nulldamage =n.damage/2 too
THX vinnieshuda
Excellent. Anyone who has taken a trip to Frosty knows this is a HUGE issue in game.
Many ways to do this, depending on the way you do, you could have it were you fall and get the blood effect but no damage or could have it were no blood effect happens :p just figured i'd let you know,
Just went to implement it. I was wrong above the code is actually found in WarZ_Server.sln NOT WarZ.sln. Sorry for any confusion. It is on line 2026 roughly.
IGNORE i find ! sorry..
The path to edit the file is
C:\WarZ\bin\server\WO_GameServer\Sources\ObjectsCode\obj_ServerPlayer.cpp
Line 2026..