• Gamemode custom weapons?
    5 replies, posted
Hello. Me and my mate started making a gamemode for about a week ago(He's a mapper, and i'm a 3d designer). And we have come to adding custom weapons, and wonder how to do so. The lua codes worked fine, but the weapon models won't load. I've tried putting the custom models into(<gamemode>/content/models/weapons/), and(<gamemode>/models/weapons/). We also wondered if it was possible to increase the hit radius of a melee weapon(make it wider), so that it doesn't only hit right infront of you. - Xcisso
Make it shoot a bullet and increase its cone? (Have the bullet only travel X units away from the weapon though.)
For melee [b][url=http://wiki.garrysmod.com/?title=Player.TraceHullAttack]Player.TraceHullAttack [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]
[QUOTE=ralle105;28651092]For melee [b][url=http://wiki.garrysmod.com/?title=Player.TraceHullAttack]Player.TraceHullAttack [img_thumb]http://wiki.garrysmod.com/favicon.ico[/img_thumb][/url][/b][/QUOTE] Thank you, that should do the trick :) Another quick question: Is it possible to make melee weapons to do more/less damage against armor? (E.g. a mace does x1.5% more damage against armor then normal health.)
You could do a work around where you check if they have any armor and take that amount away rather then just damaging them like you normally would.
[QUOTE=??????;28672878]You could do a work around where you check if they have any armor and take that amount away rather then just damaging them like you normally would.[/QUOTE] Ye, i tried that. But each time when i hit someone with armor, i got a 0,5 sec screen freeze. All i did was a " if victim has over 0 armor then take the current armor - 50". I dont have the exact code, since i deleted it. But that should work, right?
Sorry, you need to Log In to post a reply to this thread.