Raised This Month: $95 Target: $400
 23% 

Knife Blink


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Zenith77 (34)
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 02-06-2008 , 11: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 - 5764 views - 12.4 KB)
File Type: inc chr_engine.inc (15.3 KB, 2671 views)
__________________

Last edited by pharse; 02-17-2008 at 08:40. Reason: + installation notes, chr_engine.inc
pharse is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 02-06-2008 , 14:40   Re: Knife Blink
Reply With Quote #2

This is very cool. I will test this now
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 02-06-2008 , 14:45   Re: Knife Blink
Reply With Quote #3

Sounds cool, also attach a compiled version.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 02-06-2008 , 14:50   Re: Knife Blink
Reply With Quote #4

Quote:
Originally Posted by Alka View Post
Sounds cool, also attach a compiled version.
oh sure forgot that one ;)
> *.amxx uploaded
__________________
pharse is offline
Pro Patria Finland
Senior Member
Join Date: Apr 2006
Location: BaronPub.com
Old 02-07-2008 , 05:57   Re: Knife Blink
Reply With Quote #5

Nooo! No compiled versions.

The forum compiles the sma automatically.
__________________
I am not a number. I am Gordon Freeman!
Pro Patria Finland is offline
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 02-07-2008 , 06:00   Re: Knife Blink
Reply With Quote #6

not if you include chr_engine.inc and fakemeta_util.inc <_<
__________________
pharse is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 02-07-2008 , 15:33   Re: Knife Blink
Reply With Quote #7

Quote:
Originally Posted by pharse View Post
not if you include chr_engine.inc and fakemeta_util.inc <_<
You got owned.
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
chris
Senior Member
Join Date: Mar 2007
Location: America
Old 02-07-2008 , 16:35   Re: Knife Blink
Reply With Quote #8

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

Last edited by chris; 02-07-2008 at 17:19. Reason: Added an idea
chris is offline
Send a message via AIM to chris
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-07-2008 , 18:05   Re: Knife Blink
Reply With Quote #9

Quote:
Originally Posted by pharse View Post
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.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
pharse
Senior Member
Join Date: Jan 2008
Location: Germany, BW
Old 02-08-2008 , 09:25   Re: Knife Blink
Reply With Quote #10

Quote:
Originally Posted by chris View Post
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
__________________
pharse is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:06.


Powered by vBulletin®
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Theme made by Freecode