Raised This Month: $51 Target: $400
 12% 

[Any] Smoke Bomb!


Post New Thread Reply   
 
Thread Tools Display Modes
Calystos
Member
Join Date: Jan 2011
Location: Terra
Old 02-26-2012 , 22:07   Re: [Any] Smoke Bomb!
Reply With Quote #51

Tweaked it a teeny bit an added a new thing too.

* sm_smokecarry_admin console variable added, allows servers to set if their admin may carry more than normal players or not (defaults to same)
* Minor tweak to prevent possible server crashes (Nuclear Dawn whinged so better safe than sorry) via added OnMapStart precache of the grenade particle.
* Code cleanup (am fussy, lol) of ";"'s an whatnot
* Added gametype detection functions as got a few ideas wanna add later
* Changed the out of smokebombs bit so if not playing on tf2 no point saying to resupply since we can't (yet)
* Added AutoExecConfig bit to plugin start function. cfg/sourcemod/plugin.smokebomb.cfg gets auto created with defaults if not already exists

Hope this helps yas out, :-) Got a few ideas for other stuff too will see about tweaking more later.
Attached Files
File Type: sp Get Plugin or Get Source (smokebomb.sp - 451 views - 9.9 KB)

Last edited by Calystos; 02-26-2012 at 22:10.
Calystos is offline
Send a message via ICQ to Calystos Send a message via AIM to Calystos Send a message via MSN to Calystos Send a message via Yahoo to Calystos Send a message via Skype™ to Calystos
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-01-2013 , 23:08   Re: [Any] Smoke Bomb!
Reply With Quote #52

Pretty neat. Approved.

Things you may want to change for your futur release :
  • Remove FCVAR_REPLICATED from version ConVar. Should prevent client console error.
  • --Tiny possible optimizations--
  • Use FormatEx rather than Format.
  • You could do decl rather than new in string arrays (debatable).
  • You don't need to actually use a handle with your two timers, you could directly use what is in the datapack, since there is only one variable.

Thought you probably know those are very minor details.

Red
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 01-01-2013 at 23:11.
RedSword is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 01-02-2013 , 22:15   Re: [Any] Smoke Bomb!
Reply With Quote #53

This will be great to use with [TF2] Disguise Jutsu (2.0). I will upload a video of it asap
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
Roundcat
Senior Member
Join Date: Feb 2012
Old 01-03-2013 , 05:31   Re: [Any] Smoke Bomb!
Reply With Quote #54

Hey Darth - as usual an awesome plugin. I get that it an be admin only but is there a place to attach an admin flag?

If it's admins only handing our the bombs to players we will be spamed to hell from begging kids.

EDIT - just seen Calystos's version... Bit confused now...So which do we use?

Also could it be possible to attach this to a thrown projectile. If not maybe change name to 'fart bomb'? ;op
__________________
I know not my ar*e from its elbow.

Last edited by Roundcat; 01-03-2013 at 07:16.
Roundcat is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 01-07-2013 , 08:51   Re: [Any] Smoke Bomb!
Reply With Quote #55

Causes so much server lag.
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
Roundcat
Senior Member
Join Date: Feb 2012
Old 01-07-2013 , 12:36   Re: [Any] Smoke Bomb!
Reply With Quote #56

Ya I had to disable it - I was ok but lots of lag complaints. Liked it tho!
__________________
I know not my ar*e from its elbow.
Roundcat is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 01-07-2013 , 13:57   Re: [Any] Smoke Bomb!
Reply With Quote #57

Oh yea it was an awesome time. Rainbow clouds everywhere. Just as for every cloud spawned it would increase my cpu usage by 12%
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
RedSword
SourceMod Plugin Approver
Join Date: Mar 2006
Location: Quebec, Canada
Old 01-07-2013 , 16:14   Re: [Any] Smoke Bomb!
Reply With Quote #58

Quote:
Originally Posted by vman315 View Post
Oh yea it was an awesome time. Rainbow clouds everywhere. Just as for every cloud spawned it would increase my cpu usage by 12%
Try to change sm_smokedensity; might help.

edit : to a lower value obviously.
__________________
My plugins :
Red Maze
Afk Bomb
RAWR (per player/rounds Awp Restrict.)
Kill Assist
Be Medic

You can also Donate if you appreciate my work

Last edited by RedSword; 01-07-2013 at 16:14.
RedSword is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 01-07-2013 , 23:23   Re: [Any] Smoke Bomb!
Reply With Quote #59

Quote:
Originally Posted by vman315 View Post
Causes so much server lag.
It's actually client side lag due to rendering the smoke.
__________________
DarthNinja is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode