Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
There is a bunch of things you need to do it right there really is no small example because it requires a complete re-work of the way in which damage is issued.
To sum it up quickly.
- You need to set all players to the same team (Hooking SetPlayerTeam() GetPlayerTeam())
- You need to use OnPlayerGiveDamage() to process damage amounts
- You need to use OnPlayerTakeDamage() to process other damage (Car ramming, heliblading, fall damage)
- OnPlayerTakeDamage() is passed directly to OnPlayerGiveDamage()
- Server sided health/armor variables are also required
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Pottus
There is a bunch of things you need to do it right there really is no small example because it requires a complete re-work of the way in which damage is issued.
To sum it up quickly.
- You need to set all players to the same team (Hooking SetPlayerTeam() GetPlayerTeam())
- You need to use OnPlayerGiveDamage() to process damage amounts
- You need to use OnPlayerTakeDamage() to process other damage (Car ramming, heliblading, fall damage)
- OnPlayerTakeDamage() is passed directly to OnPlayerGiveDamage()
- Server sided health/armor variables are also required
|
Hmm... Yea, I feel like I just asked the same stuff, and it turns out, Pottus was the one to run me through it.
Click me to see additional info on my old situation!
Posts: 743
Threads: 49
Joined: May 2014
Reputation:
0
OnPlayerTakeDamage, you can change the amount of damage the weapon does.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
@TakeiT - There is a lot of things you need to consider OPTG is only part of this didn't you read my post ?