ULX

Author Topic: Allow Players to kill players in Vehicles?  (Read 1882 times)

0 Members and 1 Guest are viewing this topic.

Offline Jaden Zepeda

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Allow Players to kill players in Vehicles?
« on: December 20, 2014, 09:13:57 PM »
Is there a way to disable players godmode in vehicles?

Offline monkstick

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Allow Players to kill players in Vehicles?
« Reply #1 on: December 22, 2014, 02:54:19 AM »
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.

Offline Jaden Zepeda

  • Newbie
  • *
  • Posts: 28
  • Karma: 0
Re: Allow Players to kill players in Vehicles?
« Reply #2 on: December 22, 2014, 11:07:56 AM »
Like Seats, players are godmoded in seats.

Offline monkstick

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: Allow Players to kill players in Vehicles?
« Reply #3 on: December 23, 2014, 06:46:01 AM »
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.