• Laser STOOL 2.0
    455 replies, posted
  • Avatar of MadJawa
  • For the moment, the only way I found is to search the NPC's ragdoll when killing it: [lua]for k,v in pairs(ents.FindByClass("prop_ragdoll")) do if (v:GetClass() == "prop_ragdoll" and v:GetTable().Created == CurTime()) then v:SetName( dissolverEnt.Target ); end end[/lua] I'm still searching in Sandbox how to retrieve the NPC's ragdoll out of the Entity but if I really can't find anything I'll use the above code [b]Edit:[/b] Too bad that "GetRagdollEntity" only works on player :uhoh:
  • Avatar of Lambda 217
  • MIRRORS OH GOD SEXY OH GOD But seriously, when I read about this mod I actually got a weird floating sensation throughout me. And also, the mirror sent will be epic for minges who like to laser spam. "HAHA LASER-OWNED HAHA" "BRING IN THE MIRROR-TANK" *jeep covered in mirrors rolls in* "HAHAH I OWN YOUR- OH GOD MY FACE OW OW WO"
  • Avatar of Kogitsune
  • You could look into: GM.CreateEntityRagdoll( entity, ragdoll ) It's defined in base, but I don't know what it does or where it's really called from, after a bit of searching since it's a blank function in the base gamemode. From what I can tell, there is no longer the OnNPCKilled bit where the the ragdoll is assigned to the NPC that I could find in code.garrysmod.com :(.
  • Avatar of Block
  • Yay for lasers! Awesome addon! [img]http://i34.tinypic.com/119z05d.jpg[/img]
  • Avatar of MadJawa
  • [QUOTE=Kogitsune]You could look into: GM.CreateEntityRagdoll( entity, ragdoll ) It's defined in base, but I don't know what it does or where it's really called from, after a bit of searching since it's a blank function in the base gamemode. From what I can tell, there is no longer the OnNPCKilled bit where the the ragdoll is assigned to the NPC that I could find in code.garrysmod.com :(.[/QUOTE] I searched for CreateEntityRagdoll in code.garrysmod.com and I found this: [url]http://code.garrysmod.com/?show=/garrysmod/gamemodes/sandbox/gamemode/init.lua#214[/url] So I tried this: [lua]function AssignNPCRagdoll( entity, ragdoll ) entity.DeathRagdoll = ragdoll; end hook.Add( "CreateEntityRagdoll", "AssignNPCRagdoll", AssignNPCRagdoll ) [/lua] And it worked! I can dissolve the NPC's ragdoll :D Thanks you very much :) [b]Edit:[/b] [QUOTE=Block]Yay for lasers! Awesome addon! [img]http://i34.tinypic.com/119z05d.jpg[/img][/QUOTE] Awesome!
  • Avatar of Lambda 217
  • I found a bug, if a player is killed by "Core effect", the screen will go red, and there will be a ragdoll, but the player can still walk and noclip, but clicking will respawn them. Also, I like the kill-icon.
  • Avatar of Lyokanthrope
  • I have a request..how about a crystal SENT thing that "Refracts" the laser's direction in a certain direction (no matter where the laser hits it)? So you could actually do what this guy did: [url]http://forums.facepunchstudios.com/showpost.php?p=11086485&postcount=35[/url] Without faking it. Also, sorry for any grammatical errors, I woke up 12 minutes ago. :v:
  • Avatar of Arkantos
  • Now a prism would be cool, put a white laser through, and a colorful shotgun effect of lasers comes out.
  • Been playing with this all day, it's great only problem cvar for max lasers please ?
  • Avatar of Lyokanthrope
  • [QUOTE=Arkantos]Now a prism would be cool, put a white laser through, and a colorful shotgun effect of lasers comes out.[/QUOTE] That's what I meant! ..Sorta.
  • Avatar of DVD Player
  • What would be sweet, is if a magnifier lens SENT was made. One that once the laser goes through, it doubles in size and damage!
  • Avatar of free_gnome1
  • [QUOTE=DVD Player]What would be sweet, is if a magnifier lens SENT was made. One that once the laser goes through, it doubles in size and damage![/QUOTE] That isn't a bad idea but no one is gonna make it i guess.
  • Avatar of Lambda 217
  • [QUOTE=DVD Player]What would be sweet, is if a magnifier lens SENT was made. One that once the laser goes through, it doubles in size and damage![/QUOTE] I thought that would make a "focused beam". I have yet to see sun going through a telescope to make a huge laser. A small laser, yes, a death-star beam, no.
  • Avatar of Lyokanthrope
  • Uh-oh..Hm. I was just using this and making a cool satellite thing when all of a sudden..ENGINE ERROR: No free edicts! I only had some mirrors, a laser, and 3 PHX props..
  • Avatar of Frankess
  • I want those lasers in wire! But not for killing but for type of ranger. Which don't show length between prop and ranger. Only detect if someone pass the beam.
  • Avatar of BlackWind
  • [QUOTE=Block]Yay for lasers! Awesome addon! [img]http://i34.tinypic.com/119z05d.jpg[/img][/QUOTE] Please, fill me in with info, where did you find that little ball?? :D :D :D Because it's not in the sents [b]Edit:[/b] And By The Way, how do you change the bounce emount? At The Moment it only bounces at four to one laser
  • Avatar of MadJawa
  • [QUOTE=BlackWind]And By The Way, how do you change the bounce emount? At The Moment it only bounces at four to one laser[/QUOTE] Edit the file Laser STOOL 2/lua/entities/gmod_laser/shared.lua and change the value at line 19. [b]Edit:[/b] :siren: I uploaded the fix for the two known bugs (look the first post) :siren: Link : [url]http://lua.madjawa.net/LaserSTOOL2Fix.zip[/url] You must have downloaded and installed the Laser STOOL 2 in order to use this, just extract to your addons folder and say YES if it asks you to overwrite folders! I'm leaving soon, and I will be back around August 18. So report bugs here, suggest new features, and I'll try to add them when I come back :D
  • Avatar of Block
  • [QUOTE=BlackWind]Please, fill me in with info, where did you find that little ball?? :D :D :D Because it's not in the sents [/QUOTE] Sadly it's just a helibomb with a changed material. The wide laser comes from a small emitter inside the ball.
  • Avatar of Ydna
  • I love SVN versions, but as you post updates rarely it wouldn't be necessary. Lua King! Not god, because it's a bit simple, but that doesn't mean that it's easy. Keep doing these addons, I love them. Thank you! Oh, and some light modificators, like magnifier lents would be good too. (But a magnifier or make the light smaller and harder or make bigger and weaker...)
  • Avatar of BlackWind
  • [QUOTE=Block]Sadly it's just a helibomb with a changed material. The wide laser comes from a small emitter inside the ball.[/QUOTE] Sadly :(
  • Avatar of commander204
  • [QUOTE=Block]Sadly it's just a helibomb with a changed material. The wide laser comes from a small emitter inside the ball.[/QUOTE] But it still looks awesome :D!
  • Avatar of Calypso2300
  • suggestion...make the mirrors have a wire output for whether they're reflecting lasers at a given time. then you could do fancy looking tripwires and laser alarm grids...that don't just outright kill people. sound cool? also, for epic wins and awesomesauce in a spraybottle, if anyone remembers the game C&C Generals...I see potential for a Particle Cannon network in Spacebuild...forget ion-cannons. anyone who can calculate the angles involved in multiple mirrors to reflect a giant laser beam from straight up from the planet, to straight down to the target, via more than two satellites....automatically....is a true WIRE GOD. I'm going to go try that. if I do it, I'll post a vid on youtube and allow you to kiss my feet and hail me as your god.^_^ deal? Calypso
  • For some reason, the laser doesn't break wooden crates or anything, it just makes the noise. Please fix it! (Please!!)