Thread: Crossbow v2.1
View Single Post
Plugin Info:     Modification:          Category:          Approver:   Exolent[jNr] (178)
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 10-25-2009 , 14:12   Crossbow v2.1
Reply With Quote #1

--- Introduction ---
This is Crossbow from HL.It costs 9000 $.To attack press attack1 button, to use zoom press attack2.If you shoot while zooming crossbow just hit enemy/ wall, but if you are shooting without zoom bolt will explode and do more damage. You have 5 bolts in clip and 25 in backpack.Also, there is avaiable alternative model (see .zip file below).From
v.2.1 avaiable is MulitLingual support

--- Requirements ---
Counter-Strike 1.6 (Don't know about Condition-Zero, but should work)
AmxModX 1.8.0 or higher
Cstrike,Engine,Fakemeta,Hamsandwich modules

--- Credits ---
NiHiLaNTh - Plugin
VEN - Finding weapon entities
Arkshine - Ham_Item_Deploy/getting fov/weapon animation
meTaLiCroSS - Weapon touch/Weapon drop after death
Scorpieo - Alternative crossbow model
ConnorMcLeod - Maxclip plugin
Nextra - Improvements
crazyeffect - ML / Dutch translation

--- CVARs ---
amx_crossbow 1 Enable(1) or disable(0) plugin
amx_crossbow_price 9000 Price of crossbow
amx_crossbow_damage 75 Damage done by explosion
amx_crossbow_damage2 90 Damage done by bolt
amx_crossbow_radius 175 Explosion radius
amx_crossbow_one_round 1 // 1 - one round; 0 - until player got killed
amx_crossbow_knockback 10 // Knockback power
amx_crossbow_buyzone 1 Crossbow buying only in buyzone(1) or everywhere on the map
amx_crossbow_kill_money 300 Money reward for killing enemy
amx_crossbow_tk_money 500 Money for team kill
amx_crossbow_admin 0 If 1 admins with spec.flag can purchase crossbow
amx_crossbow_teams 0 If 0 - both teams can buy crossbow; if 1 - T's only CAN buy; 2 - CT's only CAN buy

--- Client Commands ---
amx_crossbow_give <nick> - Give crossbow for specified player (ADMIN_CVAR required)

Chat commands:
say /xbow
say /crossbow

--- Changelog ---
Code:
v1.0 - First release
v1.1 - Fixed bug where ammo was not updated correctly
     - Optimized bolt flight
     - Fixed crap runtime error
v1.2 - Fixed some little bugs(ammo on zooming was not updated)
v1.3 - Fixed bug with drop
v1.4 - Fixed bug where player could reload infinite times
     - Fixed bug with score info
     - Added knockback from explosion
v1.5 - Fixed bug where player were damaged and knockbacked, even he were not in radius     
     - Fixed bug where player with godmode still could get damage
     - Fixed bug where player could reload with full clip
     - Fixed bug where player couldn't purchase crossbow after using antidote
     - Added bleed stuff
     - Added alternative model
     - Fixed bug where player could shoot while reloading
v1.6 - Improved damage calculation system for exploding bolt
     - Added CVAR for crossbow one-round-only keeping
     - Improved damage detection system for normal bolt
     - Fixed bug with crossbow drop after death
     - Some minor optimizations/changes
v1.7 - Added knockback CVAR
     - Improved knockback from explosion
     - Fixed bug with score info
     - Optimized code a bit        
v2.0 - Rewrited for non-zp usage     
     - Added a lot of cvars
     - Minor changes
v2.1 - Made some improvements
     - Added ML

--- Screenshot ---



Attached Files
File Type: zip alternative.zip (150.0 KB, 11709 views)
File Type: sma Get Plugin or Get Source (amx_crossbow21.sma - 12856 views - 33.0 KB)
File Type: txt amx_crossbow.txt (1.1 KB, 6315 views)
__________________


Last edited by NiHiLaNTh; 10-27-2009 at 17:54. Reason: Updated to 2.1
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh