making a weapon from dev modes "lightning strike" (thors hammer)

Started by PeskyNgon, July 24, 2020, 10:29:04 AM

Previous topic - Next topic

PeskyNgon

im trying to make thors hammer "shoot" thunder. i have the hammer texture, naming, range, and melee characteristics sorted. i can go in game and it works like a regular gun.
what i now want to do is replace the code that shoots a bullet with the code from dev mode that calls a lightning strike where the player clicks.
obviously id also need to edit it so it spawned lightning where the "gun" was aimed, not where the cursor was aimed.
does anyone know where id find the code for the dev tools? and also the code for where/who a weapon is currently being aimed at?
this is my first mod, so im struggling a bit. if anyone could help me, id be very grateful.