• Smoke Grenade
    38 replies, posted
[img]http://www.garrysmod.org/img/dl/53353_1.jpg[/img] A smoke bomb. Hopefully smooth sounds and graphics, easy to use, relatively performance-efficient. Not much else to say about it. [url=http://www.garrysmod.org/downloads/?a=view&id=53353][img]http://www.garrysmod.org/img/?t=dll&id=53353[/img][/url] [b]Extract to /addons[/b]
sounds cool, lua kinged.
That is pretty cool.
Hell yeah bitches!
Does it stop NPC's from firing and move out of the smoke?
Frigin' Finally! :v:
My my, you're on a release spree aren't you :v:. Looks good, nice job.
[QUOTE=Peacekid]Does it stop NPC's from firing and move out of the smoke?[/QUOTE] Nope. I wanted to make it do that, but that doesn't even seem possible. [QUOTE=L337N008]Frigin' Finally! :v:[/QUOTE] The lack of smoke bombs on gmod.org really is quite surprising.
[QUOTE=Citizen 101]Nope. I wanted to make it do that, but that doesn't even seem possible.[/QUOTE] You could probably get away with making them fear the smoke bomb. [lua] local k, v for k, v in pairs( ents.FindInShpere( bomb:GetPos( ), 512 ) ) do if v:IsNPC( ) then v:AddEntityRelationship( bomb, DT_FR, 99 ) end end [/lua] Or something like that.
[QUOTE=Kogitsune]You could probably get away with making them fear the smoke bomb. [lua] local k, v for k, v in pairs( ents.FindInShpere( bomb:GetPos( ), 512 ) ) do if v:IsNPC( ) then v:AddEntityRelationship( bomb, DT_FR, 99 ) end end [/lua] Or something like that.[/QUOTE] Tested it, doesn't seem to work. Thanks though. If I recall correctly, NPCs can't have any relationships with props. There's a hack where you parent a certain NPC to a prop and then assign the relationship to it, but that seems to arbitrarily crash the game. So yeah.
Very nice, tested in-game and it's good. 10/10.
Could you make the smoke larger? It doesn't cover a very large area. Apart from that, awesome job on all your new releases, they are all superb.
You can see through the smoke pretty well I'm afraid.
[QUOTE=Occlusion]Could you make the smoke larger? It doesn't cover a very large area. Apart from that, awesome job on all your new releases, they are all superb.[/QUOTE] I thought of that, but larger equals means more particles, equals a lot less fps and a lot more visual artifacts; technically, you can throw a few bombs in a rapid succession (one second delay) for a bigger cloud. And thanks. [QUOTE=Riggler]You can see through the smoke pretty well I'm afraid.[/QUOTE] How so?
My ideal would be if the smoke was only a small bit transparent, and also stay for longer.
Thanks, i have been waiting for one of these...
[QUOTE=Riggler]My ideal would be if the smoke was only a small bit transparent, and also stay for longer.[/QUOTE] You can easily edit this if you want ( lua\effects\effect_smokenade_smoke\init.lua - it's quite self-explanatory ). You might fuck up performance or visuals doing that though.
[QUOTE=Citizen 101][img]http://www.garrysmod.org/img/dl/53353_1.jpg[/img] smooth sounds and graphics, easy to use, relatively performance-efficient. [/QUOTE] Performance-efficient my ass this is more like an fps killer grenade
[QUOTE=runrundave]Performance-efficient my ass this is more like an fps killer grenade[/QUOTE] You must not fear. Fear is the FPS killer.
No it isn't. Crysis is. Also nade is pretty neat. I like it. *Tossing it into sweps category*
[QUOTE=Citizen 101]Tested it, doesn't seem to work. Thanks though. If I recall correctly, NPCs can't have any relationships with props. There's a hack where you parent a certain NPC to a prop and then assign the relationship to it, but that seems to arbitrarily crash the game. So yeah.[/QUOTE] The Hl2 source code has bits and parts where NPCs avoid an object such as a grenade from a "danger sphere". It's something like a danger sound.
[QUOTE=Foda]The Hl2 source code has bits and parts where NPCs avoid an object such as a grenade from a "danger sphere". It's something like a danger sound.[/QUOTE] Yeah, NPCs do react to grenades ("Oh shit!") and lots of other things. I have no idea how to do this in Lua though, or how it actually works.
You definitely have my download.
Takes about 3-2 of em' to make the smoke dense enough, other than that it's sweet. :keke: [B]Edit:[/B] The nade seems to lag the [I]clients[/I] on my server. :(
[QUOTE=Nokkala]Takes about 3-2 of em' to make the smoke dense enough, other than that it's sweet. :keke: [B]Edit:[/B] The nade seems to lag the [I]clients[/I] on my server. :([/QUOTE] Dense enough? It should obscure vision completely for at least five seconds, then fade away. Is it actual lag or just low FPS?
finally smoke grenadeds for gmod. can you also make flash bang?
I can make flash bang. Add me on steam we can talk about it.
[QUOTE=Citizen 101]Yeah, NPCs do react to grenades ("Oh shit!") and lots of other things. I have no idea how to do this in Lua though, or how it actually works.[/QUOTE] Just in case you still want to know how to do that, you can just use an [URL=http://developer.valvesoftware.com/wiki/Ai_sound]ai_sound[/URL] entity. It's pretty easy to use, you just have to set the "soundtype" to 8 and parent it to the grenade (and set the duration to a high value). :)
[QUOTE=Silverlan]Just in case you still want to know how to do that, you can just use an [URL=http://developer.valvesoftware.com/wiki/Ai_sound]ai_sound[/URL] entity. It's pretty easy to use, you just have to set the "soundtype" to 8 and parent it to the grenade (and set the duration to a high value). :)[/QUOTE] Awesome, thanks! I'll have to check this out as soon as I can.
[QUOTE=Citizen 101]Tested it, doesn't seem to work. Thanks though. If I recall correctly, NPCs can't have any relationships with props. There's a hack where you parent a certain NPC to a prop and then assign the relationship to it, but that seems to arbitrarily crash the game. So yeah.[/QUOTE] Sorry too qoute a old post, But i have a idea. There is a special npc in half-life 2: npc_bullseye. Npc's hate npc_bullseye. When a npc should shoot a prop, VALVe parented the npc_bullseye with the prop, and all npc hate npc_bullseye, because it was made like that. And when they killed npc_bullseye, they destroyed the prop. ... Maybe you should use npc_bullseye, and change the relationship.
Sorry, you need to Log In to post a reply to this thread.