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

Spray Models by Ludwig van


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Fun Stuff        Approver:   Hawk552 (427)
Blingmasta
New Member
Join Date: Aug 2007
Old 08-21-2007 , 14:12   Spray Models by Ludwig van
Reply With Quote #1

Code:
/*********************************************************************** 
* amx_te_model.sma version 2.3 December 29/2002-Jan 4 2002 
* By: Eric Lidman Alias: Ludwig van [email protected] 
* Upgrade: <http://lidmanmusic.com/cs/plugins.html >
* 
* The stupidest plugin I ever wrote: Spray temporary models from your 
* person. Basically lets you play with TE_MODEL from the HL_SDK and 
* change a few parameters passed to it in-game. All parameters are 
* optional, the default is one "tree" model for 20 seconds (=255) 
* Have fun! Oh, yah, this is just the beginning, if you are computer 
* savy, modify this plugin and add to it whatever you like. 
* 
* UPDATED!!! Now the spray goes on the direction of your aim. 
* A big thanks to SpaceDude for coming up with code for that. 
* 
* 
* Command: 
* 
* amx_te_model [<model type> <number to spray 1-500> 
* <speed range -4000 to +4000> <duration 1-255>] 
* 
* Actual Usage: 
* 
* amx_te_model 
* amx_te_model headcrab 
* amx_te_model big_mom 50 
* amx_te_model tree 10 -500 
* amx_te_model gasbag 100 3000 255 
* 
* Models to choose from: 
* random tree big_mom houndeye leech fungus headcrab zombie 
* bigrat bullsquid gasbag hgibs friendly islave icky nihilanth 
* 
* chicken ---- cstrike only, all other mods default this name to tree 
* girl --- optional, needs model put on server or it defaults to tree 
* 
* Issues: There is no stop command, but it will limit you to 500 models. 
* Who needs one anyway, just be reasonable. If you have alot of models 
* sprayed onto the map there is potential for client video lag. Tell em 
* to upgrade! Even so, the models only last 20 seconds, so no big deal. 
* Assuming everone's pak file is the same, there should be no issue with 
* the server crashing on startup because it couldnt find a model. I 
* mention this however because I already ran into it. My test server and 
* my real server do not use the same pak file much to my surprise. But, 
* this version works on both my servers and draws on the more common 
* models so as to avoid this crash possiblilty. 
* 
*************************************************************************/
This is a pointless, but fun plugin by Ludwig van, all I did was fix it to make it work with AMXX. Basically it just shoots temporary models in the direction your aiming. Like I said, its pointless, but usually you'll get a few laughs from people in your server. The girl hostage model is also attached. Have fun!
Attached Files
File Type: sma Get Plugin or Get Source (spray_models.sma - 2543 views - 8.3 KB)
File Type: zip girl_hostage.zip (95.4 KB, 1962 views)

Last edited by Blingmasta; 08-23-2007 at 18:48.
Blingmasta is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 08-21-2007 , 17:18   Re: Spray Models by Ludwig van
Reply With Quote #2

You don't need to post the already compiled 'amxx' extension file.
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-21-2007 , 17:22   Re: Spray Models by Ludwig van
Reply With Quote #3

Also, indent the code. This plugin can still be optimized, I believe.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Blingmasta
New Member
Join Date: Aug 2007
Old 08-21-2007 , 18:51   Re: Spray Models by Ludwig van
Reply With Quote #4

Okay, I indented the code and removed the extra file. As for optimization, I have very little experience in coding for amxx so some help would be appreciated.

So, any feedback on the plugin itself?

Last edited by Blingmasta; 08-22-2007 at 01:59.
Blingmasta is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 08-22-2007 , 06:34   Re: Spray Models by Ludwig van
Reply With Quote #5

Well if this plugin has a fail-safe for excessive use (by other admins) I'll use this for sure. But I'm commenting/removing the girl from the source xD
__________________
Mod:
User:
BlackMilk is offline
Blingmasta
New Member
Join Date: Aug 2007
Old 08-22-2007 , 19:30   Re: Spray Models by Ludwig van
Reply With Quote #6

Quote:
Originally Posted by BlackMilk View Post
Well if this plugin has a fail-safe for excessive use (by other admins) I'll use this for sure. But I'm commenting/removing the girl from the source xD
Well this plugin can easily be made to only work for certain individuals. Plus, you should be able to trust your admins not to abuse their power

By the way, why are you removing the girl?
Blingmasta is offline
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 08-23-2007 , 10:23   Re: Spray Models by Ludwig van
Reply With Quote #7

Quote:
Originally Posted by Blingmasta View Post
Well this plugin can easily be made to only work for certain individuals. Plus, you should be able to trust your admins not to abuse their power

By the way, why are you removing the girl?
Cos for as far as memory serves, it's not a standard HL model.

And yes you're right I'll look at the flag but I meant more something like accidentally pressing it too often or whatever (most stuff gets binded by me admins, and I'm gonna work on a big menu).
__________________
Mod:
User:
BlackMilk is offline
Arion
Senior Member
Join Date: Mar 2007
Old 08-23-2007 , 12:50   Re: Spray Models by Ludwig van
Reply With Quote #8

I think you can optimize the code using switch() instead a hundred elseif().

When I tjrow many models, my CS closes with no error messages ¬¬"

bind F11 "amx_te_model headcrab 2 4000 255"
Will throw ONE headcrab at full sped right on your enemy's head.
LOL

I love this plugin. Keep up the good work!
__________________
Arion is offline
Send a message via MSN to Arion
BlackMilk
Veteran Member
Join Date: Jun 2007
Old 08-23-2007 , 15:29   Re: Spray Models by Ludwig van
Reply With Quote #9

Throwing a chicken at someone's head just gave me an idea: damage.

BOOM! CHICKEN HEADSHOT!
__________________
Mod:
User:
BlackMilk is offline
ABC3Q
Junior Member
Join Date: Mar 2007
Old 08-28-2007 , 02:04   Re: Spray Models by Ludwig van
Reply With Quote #10

Quote:
Originally Posted by Arion View Post
I think you can optimize the code using switch() instead a hundred elseif().

When I tjrow many models, my CS closes with no error messages ¬¬"

bind F11 "amx_te_model headcrab 2 4000 255"
Will throw ONE headcrab at full sped right on your enemy's head.
LOL

I love this plugin. Keep up the good work!
Spray Models by Ludwig van
Converted? I thought amxx now supported amx plugins without porting.
__________________
| Account has been abandoned |
ABC3Q is offline
Reply


Thread Tools
Display Modes

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 21:47.


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