AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Spray Models by Ludwig van (https://forums.alliedmods.net/showthread.php?t=59836)

Blingmasta 08-21-2007 14:12

Spray Models by Ludwig van
 
2 Attachment(s)
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!

Lord_Destros 08-21-2007 17:18

Re: Spray Models by Ludwig van
 
You don't need to post the already compiled 'amxx' extension file.

YamiKaitou 08-21-2007 17:22

Re: Spray Models by Ludwig van
 
Also, indent the code. This plugin can still be optimized, I believe.

Blingmasta 08-21-2007 18:51

Re: Spray Models by Ludwig van
 
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?

BlackMilk 08-22-2007 06:34

Re: Spray Models by Ludwig van
 
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

Blingmasta 08-22-2007 19:30

Re: Spray Models by Ludwig van
 
Quote:

Originally Posted by BlackMilk (Post 521698)
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 :wink:

By the way, why are you removing the girl?

BlackMilk 08-23-2007 10:23

Re: Spray Models by Ludwig van
 
Quote:

Originally Posted by Blingmasta (Post 521986)
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 :wink:

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).

Arion 08-23-2007 12:50

Re: Spray Models by Ludwig van
 
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!

BlackMilk 08-23-2007 15:29

Re: Spray Models by Ludwig van
 
Throwing a chicken at someone's head just gave me an idea: damage.

BOOM! CHICKEN HEADSHOT!

ABC3Q 08-28-2007 02:04

Re: Spray Models by Ludwig van
 
Quote:

Originally Posted by Arion (Post 522273)
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.


All times are GMT -4. The time now is 13:57.

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