General > Developers Corner

Allow Players to kill players in Vehicles?

(1/1)

Jaden Zepeda:
Is there a way to disable players godmode in vehicles?

monkstick:
Yes, probably.

http://wiki.garrysmod.com/page/GM/EntityTakeDamage

When you mean in a vehicle, do you mean in a jeep seat / sandbox or actual vehicles?  I thought the jeep etc already passed damage to the player.

Jaden Zepeda:
Like Seats, players are godmoded in seats.

monkstick:
Ah, I see.  Then from what I can think off the top of my head, Its possible, but i'm unsure if the player would get accurate damage.  You could run an ondamage hook for the players vehicle and then make your own damage from the damage info.

Navigation

[0] Message Index

Go to full version