Increasing Rustler gun damage?
#1

Is it possible to increase the damage Rustlers create when firing their guns?
Reply
#2

If I used OnPlayerShootPlayer and checked if they were in a rustler, would it work?
Reply
#3

Maybe, if the OnPlayerShootPlayer calls when you shoot with the vehicle on the player...
Reply
#4

It wont work, at least not in the way you want it to work. OnPlayerShootPlayer uses (if you are using wups' include) the cameravector. But in a rustler you are not shooting in the direction you look at, but in the direction of the rustler.
You would need to get the vehicles directional vector (with the quaternion stuff, there are functions to convert it to a vector here in the forum) and use it instead of the GetPlayerCameraFrontVector. And you would need to use GetVehiclePos instead of GetPlayerCameraPos, then it should work quite accurate.
This should just be a small modification with IsPlayerInAnyVehicle(), would be a nice suggestion for wups' include.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)