21.12.2017, 09:10
OnVehicleGiveDamage
OnVehicleTakeDamage
These callbacks work like OnPlayerGiveDamage/OnPlayerTakeDamage and have a lot of potential.
What I would do with these:
- - realistic damage values
- - a vehicle falls from 1 mile above the ground gets destroyed
- - armored vehicles such as tanks don't take damage from pistols
- - stop players from damaging tanks by punching -_-
- - hit location based damage (store data from OPWS or maybe pass offsets in OVGD/OVTD?)\
- - - Example: a tank's front side is more armored than the back or side
OnVehicleTakeDamage
These callbacks work like OnPlayerGiveDamage/OnPlayerTakeDamage and have a lot of potential.
What I would do with these:
- - realistic damage values
- - a vehicle falls from 1 mile above the ground gets destroyed
- - armored vehicles such as tanks don't take damage from pistols
- - stop players from damaging tanks by punching -_-
- - hit location based damage (store data from OPWS or maybe pass offsets in OVGD/OVTD?)\
- - - Example: a tank's front side is more armored than the back or side