Garry's Mod

Garry's Mod

NPC Daemon
penguino May 17, 2024 @ 8:12pm
Suggestion: Npc's that throw projectiles
Similar to how Antlion Workers work in Hl2 EP2. They spit poison at you when your within range. I was wondering if i could make npc's behave like that.
< >
Showing 1-5 of 5 comments
sockpuppetclock  [developer] May 18, 2024 @ 11:37am 
some npcs have inputs that force attacks, like combine soldiers have an input ThrowGrenadeAtTarget that forces them to throw a grenade at a target (and if you set the target to !player or !pvsplayer, it'd throw them at players)

inputs are already in [Miscellaenous] Inputs, but if i add a way to repeat those inputs constantly that could act like "behavior"
sockpuppetclock  [developer] May 18, 2024 @ 5:11pm 
inputs can now repeat. it's now possible to force a combine soldier to constantly throw projectiles
penguino Jul 1, 2024 @ 6:51pm 
Whenever i put the command in it does nothing.
penguino Jul 1, 2024 @ 7:16pm 
Originally posted by sockpuppetclock:
some npcs have inputs that force attacks, like combine soldiers have an input ThrowGrenadeAtTarget that forces them to throw a grenade at a target (and if you set the target to !player or !pvsplayer, it'd throw them at players)

inputs are already in [Miscellaenous] Inputs, but if i add a way to repeat those inputs constantly that could act like "behavior"



There also isnt an input like that, theres stuff like Wake (Wake) and HolsterWeapon (HolsterWeapon) but not anything about grenades.
sockpuppetclock  [developer] Jul 4, 2024 @ 3:56pm 
you'll have to change the value type to "string" instead of enum and type that in manually. https://developer.valvesoftware.com/wiki/Npc_combine_s#Inputs
< >
Showing 1-5 of 5 comments
Per page: 1530 50