Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Disable fall damage
#1
Hi guys i need a little help,
how i can give to a player dead silence pro?
Someone suggest me give specialty_falldamage but this doesnt work!
My Reputation is low, help me with +1 rep if i helped you! Big Grin
Reply

#2
specialty_falldamage is a script perk.

I suggest you check in OnPlayerDamaged for MOD MOD_FALLING and ClientNum/XUID and then set damage to 0.
[Image: azuw.jpg]
Reply

#3
Thanks, i will try later Smile
My Reputation is low, help me with +1 rep if i helped you! Big Grin
Reply

#4
public override void OnPlayerDamage(Entity player, Entity inflictor, Entity attacker, int damage, int dFlags, string mod, string weapon, Vector3 point, Vector3 dir, string hitLoc)
{
if (mod == "MOD_FALLING")
{
player.Call("iprintlnbold", "^2DAMAGE " + damage);
damage = 0;
}
}

What`s wrong?
My Reputation is low, help me with +1 rep if i helped you! Big Grin
Reply

#5
InfinityScript does not have any return value, so you can not just set damage to 0 there.

Try this:
CSHARP Code
  1. public override void OnPlayerDamage(Entity player, Entity inflictor, Entity attacker, int damage, int dFlags, string mod, string weapon, Vector3 point, Vector3 dir, string hitLoc)
  2. {
  3. if (mod == "MOD_FALLING")
  4. {
  5. player.Call("iprintlnbold", "^2DAMAGE " + damage);
  6. player.Health += damage;
  7. }
  8. }
[Image: azuw.jpg]
Reply

#6
Oh you`re right it void, thank you for your help!
My Reputation is low, help me with +1 rep if i helped you! Big Grin
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Disable Planting on Bomb clemi555 4 3,417 11-04-2013, 07:59
Last Post: clemi555
  Help How to disable auto balance? .sepultura. 3 4,311 10-07-2013, 19:44
Last Post: Nekochan
  [Release] CS addon for MW2(Sounds,show damage) Fl0w_.JACKDAN 1 4,689 09-29-2013, 19:46
Last Post: Nekochan
Question Help Team DAMAGE offhand E-losev 0 2,427 09-17-2013, 12:03
Last Post: E-losev
  [Release] Make Trees Fall Yamato 8 12,283 06-15-2013, 11:45
Last Post: xfxtroll
Question Help damage [HARD] Tony. 2 2,655 05-16-2013, 19:42
Last Post: Nekochan
  guys like increase the damage from falls? SaviouR9966 7 4,170 01-26-2013, 13:42
Last Post: Pozzuh
  [Release] Sprint Disable Plugin for version 1.9.446 blueberry9 5 4,382 01-21-2013, 22:00
Last Post: thanatos
  incease Damage for GUID only islamsaab 8 4,189 11-13-2012, 10:00
Last Post: islamsaab
  Health and damage and custom comments mbakerinnv 1 2,004 11-01-2012, 15:09
Last Post: d0h!

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.