Thread: Knife Blink
View Single Post
Plugin Info:     Modification:          Category:          Approver:   Zenith77 (33)
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 02-06-2008 , 10:57   Knife Blink
Reply With Quote #1

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
Attached Files
File Type: sma Get Plugin or Get Source (knife_blink.sma - 6627 views - 12.4 KB)
File Type: inc chr_engine.inc (15.3 KB, 3082 views)
__________________

Last edited by pharse; 02-17-2008 at 07:40. Reason: + installation notes, chr_engine.inc
pharse is offline