AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Knife Blink (https://forums.alliedmods.net/showthread.php?t=66687)

pharse 02-06-2008 10:57

Knife Blink
 
2 Attachment(s)
Knife Blink v1.1
by pharse


Description:
Allows players to move rapidly towards other players over a certain distance with their knife equipped while holding down the attack button.
Some may know this feature from the plasma sword of the first person shooter 'Halo'.

I called it "blink" following a skill in the RTS-Game Warcraft 3, where one can move "in a blink of a moment".

Usage:
Just aim at another player near you with your knife equipped and press and hold the attack button (specified by the server admin) to blink to that player.

Features:
  • ingame help motd
  • godmode during blink
  • glow effect during blink (customizable glow color)
  • notification message when blink performed and when it is ready again
  • custom blink damage
CVars:
amx_kb_enable <0/1> default: 1 -- dis-/enables the plugin

amx_kb_distance <integer> default: 350 -- distance over which players can blink

amx_kb_speed <float> default: 1000.0 -- speed with which players blink

amx_kb_attackmode <0/1/2> default: 0 -- determins which attack button invokes blink. 1=primary attack, 2=secondary attack, 0=both

amx_kb_delay <float> default: 1.0 -- time until a player can blink again (in sec). NOTE: too short delay may cause problems

amx_kb_teamblink <0/1> default: 1 -- determines if a player can blink to teammates

amx_kb_invincible <0/1> default: 1 -- dis-/enables godmode during blink

amx_kb_glow <0/1> default: 1 -- dis-/enables glow effect during blink

amx_kb_glowcolor <RRR GGG BBB> default: 255 0 0 -- glow color in RGB format

amx_kb_notification <0/1> default: 0 -- dis-/enables small notifications when blinked and blink is ready again. With higher delay you may set it to 1

amx_kb_damage <-1/0/...> default: 0 -- damage dealt. -1=instant kill, 0=normal slash damage, above=custom damage

Requirements:
Installation:
  1. Download chr_engine.inc and put it in the following folder: addons\amxmodx\scripting\include
  2. Download knife_blink.sma and put it in the following folder: addons\amxmodx\scripting
  3. Open knife_blink.sma with compile.exe (should be in the same folder). Alternatively drag knife_blink.sma on compile.exe
  4. Copy knife_blink.amxx from addons\amxmodx\scripting\compiled and paste it into addons\amxmodx\plugins
  5. Go to the following folder: addons\amxmodx\configs ; and open plugins.ini
  6. Scroll down to the end of the file and add there the following line: knife_blink.amxx ; save and close plugins.ini
  7. You can add your custom CVars in amxx.cfg located in addons\amxmodx\configs
  8. Restart your server or change the map.
Credits:
  • GHW_Chronic for the chr_engine.inc
  • VEN for the fakemeta_util.inc
Changelog:
Version 1.0
  • initial release
Version 1.1
  • added custom blink damage

Styles 02-06-2008 13:40

Re: Knife Blink
 
This is very cool. I will test this now :)

Alka 02-06-2008 13:45

Re: Knife Blink
 
Sounds cool, also attach a compiled version.

pharse 02-06-2008 13:50

Re: Knife Blink
 
Quote:

Originally Posted by Alka (Post 582252)
Sounds cool, also attach a compiled version.

oh sure forgot that one ;)
> *.amxx uploaded

Pro Patria Finland 02-07-2008 04:57

Re: Knife Blink
 
Nooo! No compiled versions.

The forum compiles the sma automatically.

pharse 02-07-2008 05:00

Re: Knife Blink
 
not if you include chr_engine.inc and fakemeta_util.inc <_<

Styles 02-07-2008 14:33

Re: Knife Blink
 
Quote:

Originally Posted by pharse (Post 582465)
not if you include chr_engine.inc and fakemeta_util.inc <_<

You got owned.

chris 02-07-2008 15:35

Re: Knife Blink
 
Nice plugin! +Karma

It would be nice if you added a CVAR to change the amount of damage the "Knife Blink" does. In Halo the slash lunge does an instant kill.

Zenith77 02-07-2008 17:05

Re: Knife Blink
 
Quote:

Originally Posted by pharse (Post 582465)
not if you include chr_engine.inc and fakemeta_util.inc <_<

Due to recent incidents, only moderators are allowed to upload .amxx files. I'll PM you my email, and send me all the necessary files to compile and I'll re-upload.

pharse 02-08-2008 08:25

Re: Knife Blink
 
Quote:

Originally Posted by chris (Post 582612)
It would be nice if you added a CVAR to change the amount of damage the "Knife Blink" does. In Halo the slash lunge does an instant kill.

*updated* NEW VERSION!

Quote:

amx_kb_damage <-1/0/...> default: 0 -- damage dealt. -1=instant kill, 0=normal slash damage, above=custom damage


All times are GMT -4. The time now is 19:48.

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