ULX

Author Topic: Prevent Entities Being Spawned and moved into spawn?  (Read 3658 times)

0 Members and 1 Guest are viewing this topic.

Offline Kingtendo

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Prevent Entities Being Spawned and moved into spawn?
« on: August 18, 2007, 11:41:28 AM »
To put it simply, is there any way you could prevent entities being spawned and moved into spawn by finding all info_player_start 's and creating a box around them of any size. so when entities and spawned inside this box, or moved into this box, the entity get's removed.

Thanks

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: Prevent Entities Being Spawned and moved into spawn?
« Reply #1 on: August 18, 2007, 11:59:28 AM »
Good idea, i think it's possible, i'll see if i can do that as another ulx module :p

Offline Kingtendo

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Re: Prevent Entities Being Spawned and moved into spawn?
« Reply #2 on: August 18, 2007, 12:05:04 PM »
Thanks for the quick response, it isn't actually my idea though.

Offline Golden-Death

  • Hero Member
  • *****
  • Posts: 751
  • Karma: 0
  • Honored Lua Scripter
    • BlueFire
Re: Prevent Entities Being Spawned and moved into spawn?
« Reply #3 on: August 18, 2007, 05:20:47 PM »
Could cause problems if a player drives his contraption into the spawn area.


Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: Prevent Entities Being Spawned and moved into spawn?
« Reply #4 on: August 18, 2007, 11:11:29 PM »
Maybe applying a force to make it go away )

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Prevent Entities Being Spawned and moved into spawn?
« Reply #5 on: August 19, 2007, 12:30:59 AM »
On top of a 'force field' or 'pusher field', also use a timer.
If someone drives into the area, it doesn't move them until 5 or 10 seconds has passed.
Give a warning to player in spawn area warning of such, etc.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming