Simulate gunfire


(Malverik) #1

Is there a way to make an entity fire a bullet, just like you can make an entity shoot a panzer or mortar?
What I want to do is make some kind of automated mg in my map. When a player enters a trigger, i want a wave of bullets to fire in that direction.
I dont want to use a trigger_hurt because I want to give the player a chance to dodge by jumping around or, if many players are there, to time their assault between waves of bullets. Also it would be much cooler to see the bullets hit the ground under your feet :clap:


(thore) #2

can’t one ‘simply’ trigger a commong mg entity by script?


(Malverik) #3

hmm, there may be something there…
in radiant, the doc for the damage key for the mg says:

“damage” determines how much the weapon will inflict if a non player uses it

is that what a non player is? a script command?


(Erik-Ftn) #4

“non-player” might refer to RTCW SP AI enemy.

IMHO if “alertentity” doesnt fire a MG nothing will, and it (very) probably wont.

There were some entities in RTCW which made auto-sniping possible but they dont work in ET. I’ve checked personally.

I looked into this question some time ago and as far as I can remember its not feasible in ET unless some addition like ETPro or Bots makes it possible. and they probably don’t and if they do it will not be worth the effort.