• how to make a swep from nothing
    4 replies, posted
i have not downloaded any lua altering......things (idk what to call them programs or something else) but ive been wanting to learn how like how people make admin guns or guns that might be able to change a player model if they get shot with it and i was wondering has anyone made a swep where the secondary fire hits what your aiming at with the butt of the gun or pistol whips them
Example swep by Garry: [url]http://wiki.garrysmod.com/?title=Garry's_Example_SWEP[/url] All weapon hooks for a SWEP: [url]http://wiki.garrysmod.com/?title=Weapon_Hooks[/url] To change someone's model: [url]http://wiki.garrysmod.com/?title=Entity.SetModel[/url] (Change the model on primary fire or something: [url]http://wiki.garrysmod.com/?title=SWEP.PrimaryAttack[/url]) As for your second question. Do you mean a melee attack like in L4D or what?
[QUOTE=Emz;17480634]Example swep by Garry: [url]http://wiki.garrysmod.com/?title=Garry's_Example_SWEP[/url] All weapon hooks for a SWEP: [url]http://wiki.garrysmod.com/?title=Weapon_Hooks[/url] To change someone's model: [url]http://wiki.garrysmod.com/?title=Entity.SetModel[/url] (Change the model on primary fire or something: [url]http://wiki.garrysmod.com/?title=SWEP.PrimaryAttack[/url]) As for your second question. Do you mean a melee attack like in L4D or what?[/QUOTE] yea but not like left 4 dead mabey with more of an elbow in it where they swing and hit them with their elbew bt use the butt of the gun as sort of support/buffer
[QUOTE=crazy_wolf;17483363]yea but not like left 4 dead mabey with more of an elbow in it where they swing and hit them with their elbew bt use the butt of the gun as sort of support/buffer[/QUOTE] first, learn how to use spell check, as for the melee on a weapon, you need to make or use an animation that the gun model came with, so you would need ACT_VM_SECONDARYATTACK or ACT_VM_MELEE if the gun has that animation
[QUOTE=Siminov;17487590]first, learn how to use spell check, as for the melee on a weapon, you need to make or use an animation that the gun model came with, so you would need ACT_VM_SECONDARYATTACK or ACT_VM_MELEE if the gun has that animation[/QUOTE] i have no lua knowledge whatso ever i dont even know where to start and stuff like that
Sorry, you need to Log In to post a reply to this thread.