Posts: 54
Threads: 17
Joined: Jun 2014
Reputation:
0
Hi, so I recently started using the SetPlayerTeam function to make my damage system work better, though now vehicles won't get damaged AT ALL. I've read that the EnableVehicleFriendlyFire() goes around it. So I placed in in my OnGameModeInit. But still, it won't work. I've tried removing the EnableVehicleFriendlyFire function. Still no luck, anyway around this?
Posts: 54
Threads: 17
Joined: Jun 2014
Reputation:
0
So there's no way around it?
I'd like to know.
Posts: 372
Threads: 23
Joined: Sep 2015
Reputation:
0
I honestly don't know, but that's just a stupid answer.
Posts: 316
Threads: 61
Joined: Jul 2012
Reputation:
0
So what exactly happens, the vehicle doesn't lose any health when it crashes or takes fire shots? I don't quite get your problem over here maybe I am just dumb but, it sounds awkward to me, mind if you elaborate it a little bit more?
Posts: 1,830
Threads: 49
Joined: Nov 2014
Reputation:
0
Are you possibly returning 0 in OnPlayerWeaponShot when they're the same team or something?
Posts: 289
Threads: 28
Joined: Jan 2012
Reputation:
0
SetPlayerTeam only prevents damage caused to the players themselves. Even with all players set to one team they should be able to damage each other's vehicles. EnableVehicleFriendlyFire() actually does the opposite of what you think it does. It prevents vehicle damage from players of the same team rather than allowing it.
If it still doesn't work, we'd have to take a closer look at how you handle damage in general.