Raised This Month: $12 Target: $400
 3% 

Throwing Knives v1.0.2 ( -]ToC[-Bludy )


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff        Approver:   Johnny got his gun (102)
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-25-2004 , 22:55   Throwing Knives v1.0.2 ( -]ToC[-Bludy )
Reply With Quote #1

********************************************* *******************************
*
* Version 1.0.2 - Date: 10/09/2004
*
* Original by -]ToC[-Bludy
*
* Upgraded to STEAM and ported to AMXx by: jtp10181 <[email protected]>
* Homepage: http://www.jtpage.net
*
********************************************* *******************************

Admin Commands:

amx_tknives - Toggles Throwing Knives On and Off

Client Commands:

throw_knife - This is the command for everyone to throw knives
say /knifehelp - Brings up knifehelp menu to help players bind keys
say /throwingknives - Same as /knifehelp

CVARS
Code:
// ******************  Throwing Knives Setup ******************

//Toggles Throwing Knives on and off (default 0) ( 1 or 0 )
//amx_throwknives 1

//The amount of ammo to be given at roundstart (default 5) ( 1 or higher )
//amx_knifeammo 5

//Force at which knives are thrown (default 1200) ( 200 or higher )
//amx_knifetossforce 1200

//Maximum amount of knives allowed at once (default 10) ( amx_knifeammo or higher )
//amx_maxknifeammo 10

//Damage dealt on a knife hit (default 25) ( 1 or higher )
//amx_knifedmg 25

//Toggles knife dropping on death on and off (default 1) ( 1 or 0 )
//amx_dropknives 1

//Toggles autoswitching to knife when bind is pressed (default 1) ( 1 or 0 )
//amx_knifeautoswitch 1

//Toggles logging kill as "throwing_knife" or "knife" (default 0) (1 = throwing_knife, 0 = knife)
//amx_tknifelog 1
Additional info:

- You must bind a key to throw_knife
- You can no longer drop your knives on command, only when you die
- Team Attack system dropped, but it will obey the server friendlyfire cvar

NEW FEATURES:

- New knife model, more effecient, smaller file size, easier to download
- New contact system, knife will stick to whatever they hit
- New code which is less CPU intensive, less bugs, server crashing seems to be eliminated.

DESCRIPTION:

It was brought to my attention a few days ago that with the update to the AMX forums the file attached to the bottom of the forum topic had only an .amx file and no custom model. This gave me the motivation to create a new model that was smaller and faster to download, and a brand new knife system to make the knives more realistic. It took a few server crashes to get the code right, but it payed off in the end. A few of my clan members and I played throwing knife darts on one of the players sprays to celebrate.

The knives work a lot better than before, and they are a lot of fun to play with. So get your knives out and go Have Fun

Changelog:
v1.0.2 - JTP10181 - 10/09/04
  • Support for AMXModX 0.20
v1.0.1 - JTP10181 - 08/11/04
  • Some tweaks to make it work better on listenservers, changed engclient_cmd to client_cmd
v1.0 - JTP10181 - 07/05/04
  • Removed some unneeded return statements
  • Made it so the knives cannot be used before the round has started (freezetime)
  • Added some extra checks on variables to be safe
  • Redid the delay code so it did not use a task
  • Changed authid arrays to be 34 usable chars for future compatibility
v0.9.8 - JTP10181 - 06/08/04
  • Tweaked the help messages a little for the commands
  • Removed all \ line breaks, not supported anymore.
  • Somewhere I added the auto-switch feature but forgot to log it.
v0.9.7 - JTP10181 - 05/19/04
  • Upgraded MOTD box to STEAM compatibility
  • Fixed bugs that happened when amx_knifeammo is greater than amx_maxknifeammo
  • Made checks to keep amx_knifeammo from being set higher than amx_maxknifeammo
  • Started to reorganize code to make it easier to follow
  • Changed a lot of PLUGIN_HANDLED to PLUGIN_CONTINUE
  • Fixed bug with partial pickups not subtracting the correct ammount from the dropped ammo
  • Hopefully fixed bug that would sometimes kill all the knife entities in the middle of a round
  • Added logging to server logs for stats software
  • Fixed bugs with scores being updated wrong

Below v0.9.6 was maintained by -]ToC[-Bludy

********************************************* ***************************/

I have permission from -]ToC[-Bludy to release new versions of this plugin.
Thanks to him for the models or whoever he got them from, they work great.

******** Engine Module REQUIRED ********
******** FUN Module REQUIRED ********
******** Model Pack REQUIRED ********


For Voting: AMXx Custom Votes
Attached Files
File Type: zip throwing_knives_model_pack.zip (48.9 KB, 24286 views)
File Type: sma Get Plugin or Get Source (throwing_knives.sma - 27489 views - 19.9 KB)
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
rex
Senior Member
Join Date: Mar 2004
Location: Australia
Old 05-25-2004 , 23:16  
Reply With Quote #2

thanks jtp10181.
will try it out.
rex is offline
Send a message via MSN to rex
kingpin
Veteran Member
Join Date: Apr 2004
Location: kpsforum.com
Old 05-25-2004 , 23:29  
Reply With Quote #3

gj bro going to try out right now.
__________________
kingpin is offline
Send a message via ICQ to kingpin Send a message via AIM to kingpin Send a message via MSN to kingpin Send a message via Yahoo to kingpin Send a message via Skype™ to kingpin
rex
Senior Member
Join Date: Mar 2004
Location: Australia
Old 05-26-2004 , 00:03  
Reply With Quote #4

no errors yet, working well
good job
rex is offline
Send a message via MSN to rex
rjlan82
Member
Join Date: May 2004
Old 05-26-2004 , 04:09  
Reply With Quote #5

..... tight
rjlan82 is offline
FroXeN
Senior Member
Join Date: Apr 2004
Location: Freecode is a loser.
Old 05-26-2004 , 04:10  
Reply With Quote #6

nice plugin seems to be a load of fun
__________________
Looking for friends!!!

http://Ms-Proxy.Com Join the fun!
FroXeN is offline
Send a message via ICQ to FroXeN
sardiax
Junior Member
Join Date: May 2004
Old 05-27-2004 , 21:08  
Reply With Quote #7

this plugin is causing a crash for me -_-.

windows xp pro
amxmodx (listenserver version) - metamodx
csstats, cstrike, engine, and fun modules
default plugins + throwing knives

server starts to start up, and then the program reports a fault and crashes.

i tried defining all the cvars - amx_throwknives, amx_knifeammo , etc.. in amxx.cfg, and thumbed through the source to make sure it wasn't obvious that i was missing a module, but i can't figure it out.
sardiax is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 05-27-2004 , 21:20  
Reply With Quote #8

your server works fine without it? listenservers have issues when there are updates.

I would also need the error it crashes with.

Did you install the models into your models folder?
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
sardiax
Junior Member
Join Date: May 2004
Old 05-27-2004 , 21:26  
Reply With Quote #9

my i feel stupid i'll get to why in a moment. sorry if i worried you any. it didn't really specify any error, just 'half-life has encountered a problem and needs to close'.
anyway i'd guess i used the 'get plug-in' option before, because i decided to try recompiling it from the source and seeing if it got screwed up or something and realized that one i had in my plugins directory was 0 bytes -_-.

as for the plugin itself, very neat thanks for the port/your work
sardiax is offline
Burnzy
Veteran Member
Join Date: Apr 2004
Old 05-28-2004 , 15:52  
Reply With Quote #10

sweet, this is definittly going onmy fun server.
__________________
Burnzy is offline
Send a message via AIM to Burnzy
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 21:03.


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