Currently writing a gamemode. Without going into too much detail, a gun will spawn a prop, however I want a delay before it is spawned.
I was thinking of grabbing the pos that the gun is looking at, storing it values then I want a spark effect to appear for 3 seconds, then the spark can dissapear and the prop will replace it.
Question is : Is storing the player looking position the best way (I need the looking position for the initial spark and then the prop, Or could i set the props pos to the spark pos)??
How on earth do I create a spark effect in lua? Can you produce hammer mapping env_sparks or would I have to code a particle system effect thing?
Also (Not sure if this is possible), can I cause every player death, regardless of dying method to create a rag doll and vaporize(like that when hit with a combine ball?)
(PS. Sorry this is poorly written, just about to go out and wrote it in a rush! Hell yeah I know, a gamer, going outside!! Wish me luck!)
Thanks in advance!