Paint Gun

From Valve Developer Community
Jump to: navigation, search

remember the paintgun from aperture tag. lets create the paintgun from that game.

making the gel sprayer

make an info_paint_sprayer and set it to whatever gel you like(you can make multiple if you want)

making it spray when you click

you can do this in 2 ways:

  1. you can set a binding for the ent_fire command
  2. you can make a point_servercommand to set the binding for you.

for the 2nd one you will need an output on something so that the binding can be set when it is triggered, then when you click it will paint the place(see also logic_auto) these are the outputs you will need for the trigger

My Output Target Entity Target Input Parameter Delay Only Once
OnMapSpawn PaintGun_sprayer command bind mouse1 "ent_fire gel_spray start" 0.00 No