AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   amx_apache (KRoT@L) (https://forums.alliedmods.net/showthread.php?t=50638)

SweatyBanana 01-30-2007 18:51

amx_apache (KRoT@L)
 
6 Attachment(s)
Plugin originally ported by XxAvalanchexX for fattoney, fixed by me.

Original AMXMOD thread: http://djeyl.net/forum/index.php?sho...mx_apache&st=0
Quote:

Originally Posted by KRoT@L
AMX Apache


Authors: KRoTaL & Fox-NL
Version: 0.1.9

0.1 Release
0.1.1 Fixed crouch bug
0.1.2 Added apache_ff cvar
0.1.3 Added 2 actions: dropping bombs and grabbing entities
0.1.4 drop bomb: +reload, grab entities: +use, stealth mode: +moveleft or +moveright
Rotors don't kill instantly, you have to keep touching the player for nearly 2s
0.1.5 Fixed crash that happened when you grabbed a hostage
+moveleft => +left, +moveright => +right, stealthmode: nightvision key
0.1.6 Updated for VexdUM 1.0. You can now break windows by shooting them or touching them.
0.1.7 Fixed the problem with the apache looking down when you were looking up (and vice-versa)
0.1.8 Added cvar apache_active

This plugin allows you to control a small apache helicopter.
You can shoot bullets with mouse1 button (+attack) and shoot rockets with mouse2 button (+attack2).
You can drop a bomb with +reload, and grab entities (if you are just above them) with +use
(to release the entity, press +use again).
Entities can be: weapons, bomb, c4backpack, hostages.
You can stop the helicopter by pressing your "drop" key (your speed needs to be between -30 and 30).
You can enter stealth mode by pressing your nightvision key, and leave this mode by pressing
your nightvision key again. There is a delay between 2 uses of stealth mode.
Your rockets will be less powerful in stealth mode, and your maximum speed will be lower.
You can also kill players by simply touching them with your helicopter ( kill them with your rotors ).
Your helicopter can be shot down.
If you have an helicopter and you are still alive at the end of a round, you will get a payback
proportionally to the health of your helicopter at the beginning of the next round, and your helicopter will
be removed.

If you want friendly fire on, set "sv_friendlyfire" to 1.


Commands:

amx_apache - creates the helicopter
amx_destroyapache - destroys the helicopter

shoot bullets: +attack
shoot rockets: +attack2
grab entities: +use
drop bomb: +reload
stealthmode: nightvision key
+moveleft => +left
+moveright => +right


Cvars:

apache_active 1
0: disables the plugin
1: enables the plugin

apache_health 1000 - health of the helicopter

apache_maxspeed 400 - maximum speed of the helicopter

apache_stealth_amount 40 - amount of visibility of the helicopter in stealth mode
0: totally invisible, 255: totally visible

apache_stealth_maxspeed 60 - maximum speed of the helicopter in stealth mode

apache_stealth_regen 10 - time in seconds players have to wait between 2 uses of stealth mode

apache_bulletdmg 10 - damage done by each bullet shot by the helicopter

apache_bulletspeed 2000 - speed of the bullets, set it to 100 for Matrix bullet time

apache_rocketspeed 1000 - speed of the rockets

apache_dist 70 - distance between the camera and the helicopter

apache_height 20 - height of the camera in relation to the helicopter

apache_beams 0
0: disables the red beam
1: enables the red beam indicating where your helicopter is aiming

apache_cost 5000 - cost of the helicopter for players who are not admins

apache_admins 0
0: all players can create a helicopter
1: only admins can create a helicopter

apache_ff 0
0: you cannot kill your friends with your rotors
1: you can kill your friends with your rotors


Setup:

Install the amx file.
Enable VexdUM.
Install the amxx file.
Enable fun, engine, and fakemeta
Put the rc_apache_final.mdl file in the cstrike/models folder.

Credits:

Jedi Grab plugin by SpaceDude
http://krotale.free.fr/cs/apache.jpg
http://krotale.free.fr/cs/apache2.jpg

v 0.1.8 - Initial AMXX port.
v 0.1.9 - Fixed bug where owner of helicopter died from almost any rocket. (Thanks for the help again Avalanche)
v 0.2.0 - pcvars

Da_sk8rboy 01-30-2007 18:54

Re: amx_apache (Krot@L)
 
Do you get any warnings when you compiled this? loose indentions? anything?

EDIT:
I found a bug in his code. when you type amx_apache etc you start flying (i was at scoutz knivez) I shot @ the house by spawn & suddenly i got slayed then i shot totally away from my player the next round but i got slayed again. here is an example:
1)
http://i82.photobucket.com/albums/j2...knivez0001.jpg
2)
http://i82.photobucket.com/albums/j2...knivez0003.jpg

3)
http://i82.photobucket.com/albums/j2...knivez0004.jpg

That was a play by play of it.

kp_uparrow 01-30-2007 19:16

Re: amx_apache (Krot@L)
 
wow cool, i though apache u meant webserver lol

SweatyBanana 01-31-2007 00:09

Re: amx_apache (Krot@L)
 
Quote:

Originally Posted by Da_sk8rboy (Post 433656)
Do you get any warnings when you compiled this? loose indentions? anything?

EDIT:
I found a bug in his code. when you type amx_apache etc you start flying (i was at scoutz knivez) I shot @ the house by spawn & suddenly i got slayed then i shot totally away from my player the next round but i got slayed again.

1.) No.. I did not, why?

2.) Working on this bug.. (Recognized as a bug..)

soccdoodcss 01-31-2007 00:11

Re: amx_apache (Krot@L)
 
Wow, this is amazing... Ive seen this in videos and such but ive never taken the time to look for it. W00t!

Edit: I lost Karma for this message?

SweatyBanana 01-31-2007 01:16

Re: amx_apache (Krot@L)
 
Updated with a fix thanks to Avalanche..

(See bottom of source code)

:up:

v 0.1.9

bonafide 01-31-2007 01:31

Re: amx_apache (KRoT@L)
 
Nice. Love it.

SweatyBanana 01-31-2007 12:25

Re: amx_apache (KRoT@L)
 
Quote:

Originally Posted by bonafide (Post 433753)
Nice. Love it.

Thanks. I will be adding a Multi-Lingual system in the next version.

SuB-Zer0 01-31-2007 14:28

Re: amx_apache (KRoT@L)
 
Nice port SweatyBanana !

Would it be possible to make a non cs version (without the cs module).

To example you could give the player a health bonus instead of money.

OmgHi 01-31-2007 15:27

Re: amx_apache (KRoT@L)
 
When I try to compile it it says things like

unknown command DONT_IGNORE_MONSTERS
unknown command DAMAGE_AIM
unknown command DAMAGE_NO

on lines..

305
997
1012


All times are GMT -4. The time now is 07:44.

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