Garry's Mod

Garry's Mod

View Stats:
This topic has been locked
redwolf344 Aug 22, 2017 @ 1:06pm
How do you edit what weapons NPCs use permanently?
i use addons to change the weapon but it resets right after. Dont you think a futuristic soldier holding a SPAS-12 is weird?
< >
Showing 1-15 of 24 comments
ÄlskarDuKaniner Aug 23, 2017 @ 5:59am 
its not that out of place m 8
JimMicBob Aug 23, 2017 @ 5:59am 
Create a script that changes their weapon on spawn.
redwolf344 Aug 23, 2017 @ 10:33am 
Originally posted by Gizzmicbob:
Create a script that changes their weapon on spawn.
how tho?
Mkekala Aug 23, 2017 @ 11:51am 
Originally posted by Red Wolf:
Originally posted by Gizzmicbob:
Create a script that changes their weapon on spawn.
how tho?
I'd imagine you could use the NPC spawn hook (if there is one) to strip its weapons and give it the weapon of choice after it spawning in. There's probably an addon for that somewhere out there.
Mkekala Aug 23, 2017 @ 11:52am 
Originally posted by Baum:
dfdsfdfddsfssdds
From the behalf of the entire :gmod:mod community I thank you for your insightful contribution to the thread.
JimMicBob Aug 23, 2017 @ 4:44pm 
Originally posted by Mkekala:
Originally posted by Red Wolf:
how tho?
I'd imagine you could use the NPC spawn hook (if there is one) to strip its weapons and give it the weapon of choice after it spawning in. There's probably an addon for that somewhere out there.

You'd use the PlayerSpawn hook and check isBot(). PlayerSpawn is called for bots as well.
Sovereign Star Aug 23, 2017 @ 4:56pm 
There are several NPC Weaponry addon, look them up in Workshop. Not sure if there are futuristic weaponry included. I guess that doesn't matter, as long as bullets can still hurt.
sLanKy Aug 23, 2017 @ 5:56pm 
do any of u want to playGmod sandbox
redwolf344 Aug 23, 2017 @ 8:24pm 
Originally posted by Amazin9Gamer1:
do any of u want to playGmod sandbox
please delete your comment. this isnt a begging discussion.
Mailer Aug 23, 2017 @ 10:04pm 
What?
You can change the default weapon for NPCs to spawn with by using the appropriate tab in the context menu, top left. (Hold C).
I am already using it to have everything spawn with the ALYX GUN.
Mkekala Aug 23, 2017 @ 11:33pm 
Originally posted by Mailer:
What?
You can change the default weapon for NPCs to spawn with by using the appropriate tab in the context menu, top left. (Hold C).
I am already using it to have everything spawn with the ALYX GUN.
That limits you to use HL2 weapons only, doesn't it?
Mailer Aug 24, 2017 @ 12:12am 
Originally posted by Mkekala:
Originally posted by Mailer:
What?
You can change the default weapon for NPCs to spawn with by using the appropriate tab in the context menu, top left. (Hold C).
I am already using it to have everything spawn with the ALYX GUN.
That limits you to use HL2 weapons only, doesn't it?

Possibly, yes.
Although isn't that the limit of standard NPCs to begin with?
I have never seen NPCs use any other weapons even one unless the weapons come with their package and is used automatically.
Mkekala Aug 24, 2017 @ 12:55am 
Originally posted by Mailer:
Originally posted by Mkekala:
That limits you to use HL2 weapons only, doesn't it?

Possibly, yes.
Although isn't that the limit of standard NPCs to begin with?
I have never seen NPCs use any other weapons even one unless the weapons come with their package and is used automatically.
I reckon that's not. I used to have some context menu mod that allowed me to rearm NPCs with any weapons that I had in my spawn menu. Maybe I should try making a console command with the lua hook and see what happens.
redwolf344 Aug 24, 2017 @ 1:04pm 
Originally posted by Mkekala:
Originally posted by Mailer:

Possibly, yes.
Although isn't that the limit of standard NPCs to begin with?
I have never seen NPCs use any other weapons even one unless the weapons come with their package and is used automatically.
I reckon that's not. I used to have some context menu mod that allowed me to rearm NPCs with any weapons that I had in my spawn menu. Maybe I should try making a console command with the lua hook and see what happens.
yeah, ive had npcs use DoD:S Weapons.
sLanKy Aug 24, 2017 @ 1:58pm 
somebody wanna play gmod sandbox
< >
Showing 1-15 of 24 comments
Per page: 1530 50

Date Posted: Aug 22, 2017 @ 1:06pm
Posts: 24