Default MAX Weapon Damage Values
#1

Well, I'm scripting a custom damage system and I came across a little problem. As you may know, the default weapon damage set may vary around the distance from the shooter to the target.
It'd be very great if someone had a list with max damage from all weapons to calculate with cross fraction :3

Any help?
Reply
#2

There is no list available like that. You are required to calculate them on your own. However you can use OnPlayerShootPlayer() by Wups to give custom damage to the player!
Reply
#3

Quote:
Originally Posted by Stewie`
View Post
the default weapon damage set may vary around the distance from the shooter to the target.
I have never witnessed this, however the shotgun damage varies by how many pellets hit the other player.
You could just cap the damage so it doesn't exceed a certain amount


Quote:
Originally Posted by Ballu Miaa
View Post
There is no list available like that. You are required to calculate them on your own. However you can use OnPlayerShootPlayer() by Wups to give custom damage to the player!
I don't see any reason to ever use that seeing as there's OnPlayerGiveDamage and OnPlayerTakeDamage.
He could just set everyone on the same team and then use OnPlayerTakeDamage to parse who shot who and if they should take damage and then sets the players health accordingly.
Reply
#4

Quote:
Originally Posted by cessil
View Post
I don't see any reason to ever use that seeing as there's OnPlayerGiveDamage and OnPlayerTakeDamage.
He could just set everyone on the same team and then use OnPlayerTakeDamage to parse who shot who and if they should take damage and then sets the players health accordingly.
Yup that can work pretty well too. He could all multiple printf's displaying him the information once the player shoots. Damage taken , Distance where he shot ,etc. After getting all the information he has to check according to weapon , distance and bullets hit the player and give him custom damage.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)