FOnline Development > FOnline Projects

FALLOUT PVE SERVER NOW OPEN

<< < (3/3)

phrophet:
Also in terms of the no pvp element is there a way to remove damage to players from other players since there are ways to hurt someone in the game indirectly like for instance using area of effect weapons like rocket launchers and grenades etc. Unless the no pvp code you guys showed earlier takes care of the area of effect damaging weapons?

Wipe:
It should work in most cases, but it all depends how your combat-related scripts looks like.
Basically all attacks should go thru combat@ApplyDamage [which is a final stage of attack and contains MODE_NO_PVP check] - that way or another. Take a look at InjureCritter() which is oh so much easier to read than CombatAttack() and that's what you probably want to use for custom attacks.

For testing if attack scenario is taken into account, you can use any no_logout map if you don't have any slave around. "No PvP" text is sent to both, attacker and victim, if attack is blocked, so you'll see result right away.

Navigation

[0] Message Index

[*] Previous page

Go to full version