Code:
/***************************************************************************
* amx_ejl_jetpack.sma version 2.8 Date: 5/9/2003
* Author: Eric Lidman [email protected]
* Alias: Ludwig van Upgrade: http://lidmanmusic.com/cs/plugins.html
*
* IMPORTANT: you need to aquire and install properly the xtrafun module
* version 1.2 or better for this plugin to work. See AMX forums to
* get it: http://amxmod.net/forums/viewtopic.php?t=10714
*
* Add a jetpack to any Half-Life mod and fly all around. Lots of cool
* special effects, firey blastoffs, smoke trails, sounds, etc. Thrust can
* be vectored to give better control of jetpack. Use the jump and move
* buttons to control thrust once your jetpack is on. Clients can to bind
* a key to jetpack or simply type it in the console to turn their pack on.
* Jetpacks can be configured to be free or require armor or money for
* fuel. Also, this has been set to work well for normal gravity (800) and
* low gravity (200) servers. Other gravity settings not recommended.
* Also, be careful, jet exhaust may burn bystanders to death. This feature
* is Friendly Fire (CS) sensitive and thus will not burn teamates if FF
* is off. This feature can be turned off. See cvars below.
* New: automatic hover mode, hold the duck botton (usually control key)
* while in air to activate what effectively is a vertical "cruise control"
* Pressing jump or pressing duck again exits the mode. This mode cannot be
* entered if your rate of descent is too high.
* New: More explosions. If you hit the ground too hard and end up dying
* with your jetpack on, you blow up when you die. Also, if you get shot
* dead while your jetpack is running, you blow up when you die. Cool.
*
* Jetpack Control Summary:
*
* jetpack --the key that is bound to jetpack turns on jetpack
* JUMP BUTTON --propels you upward and deactivates hover mode
* DUCK BUTTON --toggles hover mode
* FORWARD BUTTON --propels you in the direction of your aim
* BACK BUTTON --propels you in the reverse direction of your aim
* MOVERIGHT BUTTON --propels you in a strafe right direction
* MOVELEFT BUTTON --propels you in a strafe left direction
*
* PODBOT: If using my podbots controller, podbots use this plugin too.
*
* CLIENT COMMANDS:
*
* jetpack --should be bound to a key, turns on
* jetpack if enabled and if there
* are sufficient funds from the client
* in either armor or money depending
* on the buytype cvar
* say /jetpack --gives clients info on setup and use
* of the jetpack in an motd window
* say vote_jetpack --starts a vote to have jetpack
* enabled or disabled
*
* ADMIN COMMANDS:
*
* amx_jetpacks --toggles jetpacks enabled or not
* Also if cvar mentioned below is set
* to 1, it also activates/deactivates
* plugin "out_of_bounds.amx" if you are
* using it so that bounds limits are
* off when jetpack is on and vice versa
* amx_jetpacks_buytype --toggles jetpack fuel to be bought
* with money or armor points
* amx_jetpacks_free --sets the number of seconds a player
* can use the jetpack per round or per
* spawn. If this is set to 1 or higher
* in CS it will override buying system.
* amx_jetpacks_cost <ammount> --sets the cost of jetpack fuel
* amx_jetpackvote --toggles on/off ability for players
* to start votes, default setting is on
* amx_jetpackvote_default --sets the current jetpackvote value as
* server default auto-refreshed at every
* map change. ADMIN_RCON level admin
* required to set server default
* stopvote --stops vote in progress
*
* CVARS: can be set in admin.cfg, see corresponding commands for info
*
* amx_luds_jetpack 1 -- 0= disable 1= enable
* amx_jetpack_buytype 0 -- 0= armor 1= money
* amx_jetpack_cost 1 -- amount of money or armor depending on buytype
* amx_jetpack_free 0 -- for mods other than cstrike which do not have
* money and armor to use as payment for jetpack.
* Set the amount of jetpack seconds given to
* each player at spawn. If this is set to 1 or
* higher in CS it will override buying system.
* amx_jp_pl_kill 1 -- If you are running my "out_of_bounds" plugin
* you may want it disabled when you have the
* jetpack enabled. If you want this plugin to
* leave "out_of_bounds" alone, then set this
* cvar to 0 in your admin.cfg.
* amx_jetpack_atspawn 0 -- Default is 0 to enforce a 15 second delay on
* jetpack ignition at round start in CS so as
* to prevent spawn massacres. Set to 1 to
* ignore the delay.
* amx_jetpack_no_vip 1 -- default is 1 to not allow vip in CS to use
* the jetpack. Set that cvar to 0 to allow
* vip jetpack usage.
* amx_jetpack_exkill 1 -- this sets whether the firey jetpack exhaust
* can kill players by setting them on fire.
* 0= disable 1= enable
* amx_jetpack_auto 0 -- this sets whether your clients' jetpacks are
* automatically turned on for them.
* 0= disable 1= enable auto turn on
* amx_jetpack_autobots 1 -- this sets whether your bots jetpacks are
* auto turned on for them since they cant do it
* themselves. 0= disable 1= enable auto turn on
* amx_jvote_delay 180.0 -- Default 180.0 seconds. Delay between jetpack
* votes allowed started by a non admin
* amx_jetpack_obeyffcvar -- if mp_friendlyfire is 1 and this cvar is set
* to 0, this plugin will act as if friendlyfire
* is off ... even if its on.
* amx_jetpack_tkpunish1 -- for friendlyfire on, the option to punish team
* killer. Quota is from amx_jp_tkpunsish2 cvar
* options: a mix of kill,kick, and ban
* 0 = no action on team killer
* 1 = kick tker on tk quota
* 2 = 3 hour ban tker on quota
* 3 = always kill tker, kick on quota
* 4 = always kill tker, ban on quota
* amx_jetpack_tkpunish2 -- for friendlyfire on, quantity of teammates a
* player can kill before a kick or ban can
* result depending on amx_jp_tkpunish1 cvar
*
* CREDIT:
*
* At first, I did swipe some code from Lazy's jetpack plugin to make this
* plugin, but when its all said and done I pretty much did my own thing
* and scrapped pretty much everything from the original and just plain
* re-did it to my liking, so there really isnt too much (any?) of the
* original left, except maybe its the original inspiration. But I wanted
* to mention it anyway.
*
* ADDITIONAL:
*
* If you have the module from SpaceDude's warcraft3 plugin (war3_ms) you
* can make the deahtmessages look more real, so flamethrower kills look
* like an actual player killing another player instead of a suicide on the
* part of the killed player. To enable this, you need to change the code
* below. Simply change the value to 1 where it has #define use_war3 0
* Its simple, a one line change, thats it, compile and its ready to go.
*
***************************************************************************/
You don't need SpaceDude's warcraft 3 plugin to use "use_war3" With AMXX they added these functions into the engine.
also, uses custom dir -> customdir /ejl_vault/ejl_vault.ini