• Physgun swep ?
    9 replies, posted
So, this time i want to create a starwars jedi hands script and had a good idea for it. So i know theres already a jedi hands swep on the workshop, but after what i have seen it just throws stuff away. The next day i went into gmod and physgunned a player i then tought "Why not edit out the physgun swep and make it work like a jedi hand" I am also going to make a sith swep wich you can hold right click and it will choke them (doing like 2-5 dmg a second) And then I might make force lightning too, who knows. (might revolutionary the starwarsrp servers, MIGHT) But first of all, i need the physgun swep code, anyone know where it's located?
Try to delve into the folder. My guess is arround LUA folder.
[QUOTE=SlayerLegendz;50560178]So, this time i want to create a starwars jedi hands script and had a good idea for it. So i know theres already a jedi hands swep on the workshop, but after what i have seen it just throws stuff away. The next day i went into gmod and physgunned a player i then tought "Why not edit out the physgun swep and make it work like a jedi hand" I am also going to make a sith swep wich you can hold right click and it will choke them (doing like 2-5 dmg a second) And then I might make force lightning too, who knows. (might revolutionary the starwarsrp servers, MIGHT) But first of all, i need the physgun swep code, anyone know where it's located?[/QUOTE] The physgun wasn't created with Lua allthough you can recreate it's functionality using [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ENTITY/PhysicsSimulate]ENT:PhysicsSimulate[/url] I made a Lua version of the [URL="https://youtu.be/fVTklzBNaEI?t=14s"]gravity gun[/URL] using that function but it's not gonna be easy.
What was used to create the physgun? js?
Usually,many addons use LUA
[QUOTE=SlayerLegendz;50560531]What was used to create the physgun? js?[/QUOTE] It's written in C++, your best bet is to recreate the functionality with the provided hook.
Actualy i think i found the weapon.. It's in garrysmod/garrysmod/scripts/weapon_physgun.txt
[QUOTE=SlayerLegendz;50560565]Actualy i think i found the weapon.. It's in garrysmod/garrysmod/scripts/weapon_physgun.txt[/QUOTE] Except that's not how any of this works. That file specifies some keyvalues you can customize such as crosshair settings, view model, weight and so on. Copy pasting the contents of that file into a lua file will do nothing but cause errors and renaming it to jedi_weapon.txt won't achieve what you are trying to do either. You can either listen to anyone on the forum with a few years experience doing this and have them say the same thing, or you can go about your own way and end up back here asking questions about this ignoring what's been said so far.
[QUOTE=SlayerLegendz;50560178]The next day i went into gmod and physgunned a player i then tought "Why not edit out the physgun swep and make it work like a jedi hand"[/QUOTE] Maybe you could make a jedi hand that works like a the physgun instead? kek
[QUOTE=Bubbie;50562621]Maybe you could make a jedi hand that works like a the physgun instead? kek[/QUOTE] Or just replace materials and textures for the physgun
Sorry, you need to Log In to post a reply to this thread.