Raised This Month: $62 Target: $400
 15% 

[CSS] Throwing Knives


Post New Thread Reply   
 
Thread Tools Display Modes
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 03-11-2012 , 01:13   Re: [CSS] Throwing Knives
Reply With Quote #301

I was getting reports from my players that the 1st knife they throw actually threw like 3 (only subtracted 1 from total) and the next throw threw 2 (only subtracted 1 from total) and then it was fine after that.

Resets and does that every round.

I also got reports of it doing damage to teammates when I dont have friendly fire turned on.

I recompiled it against SM 1.4.1 and now this is spamming the hell out of my error log file.

Quote:
L 03/10/2012 - 21:52:35: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 21:52:35: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 21:52:35: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 21:53:44: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 21:53:44: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 21:53:44: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 21:54:33: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 21:54:33: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 21:54:33: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 21:54:35: [SM] Native "GetArrayArray" reported: Invalid index 2 (count: 2)
L 03/10/2012 - 21:54:35: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 21:54:35: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 21:56:51: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 21:56:51: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 21:56:51: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 21:57:09: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 21:57:09: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 21:57:09: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 22:02:27: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 22:02:27: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 22:02:27: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 22:03:03: [SM] Native "GetArrayArray" reported: Invalid index 2 (count: 2)
L 03/10/2012 - 22:03:03: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 22:03:03: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 22:03:03: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 22:03:03: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 22:03:03: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()
L 03/10/2012 - 22:05:39: [SM] Native "GetArrayArray" reported: Invalid index 1 (count: 1)
L 03/10/2012 - 22:05:39: [SM] Displaying call stack trace for plugin "throwknives.smx":
L 03/10/2012 - 22:05:39: [SM] [0] Line 164, C:\Users\Gaming\Desktop\desktop\sourcemod\SM SP\scripting\ZMy plugins\throwknives.sp::OnGameFrame()

EDIT: Never mind. I just found that one of people that helps run the server added an extremely old version of this plugin so it was running along side of the most recent one posted here. All seems fine now.
__________________

Last edited by Xp3r7; 03-11-2012 at 17:47.
Xp3r7 is offline
Send a message via MSN to Xp3r7
crilleaz
Member
Join Date: Oct 2010
Old 03-14-2012 , 05:29   Re: [CSS] Throwing Knives
Reply With Quote #302

Could you please post the other version where the knifes stays on the floor?
Would love that, so people can pick up their knives again!
crilleaz is offline
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 03-14-2012 , 19:53   Re: [CSS] Throwing Knives
Reply With Quote #303

They cant pick it up.

It was like an alpha/beta version of this plugin and when you walked across them, this "rubber band" effect happened and it was like you got pulled back a bit and flung across the map.

Like what happens with real bad lag.
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
necavi
Veteran Member
Join Date: Sep 2010
Old 03-18-2012 , 05:40   Re: [CSS] Throwing Knives
Reply With Quote #304

Due to requiring its integration into another plugin, I modified CSS throwing knife's OnKnifeHit forward to include a reference to the damage that is about to be done, and to the headshot boolean. This other plugins to not only stop the event, but change the damage/headshot status as well. I thought that other plugin authors could use this change, so I'm posting my version here.
The new forward is:
PHP Code:
forward Action:OnKnifeHit(victim,attacker,&damage,&bool:headshot); 
Attached Files
File Type: sp Get Plugin or Get Source (cssthrowingknives.sp - 204 views - 13.5 KB)
File Type: inc cssthrowingknives.inc (1,011 Bytes, 121 views)
necavi is offline
Bambinos
Junior Member
Join Date: Feb 2012
Old 03-23-2012 , 13:49   Re: [CSS] Throwing Knives
Reply With Quote #305

Hello

How to authorize the knife of thrown(launched) that for VIP? (only for vip)

(GetUserFlagBits(client) & ADMFLAG_CUSTOM5)

Thx

Last edited by Bambinos; 03-23-2012 at 14:03.
Bambinos is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 03-23-2012 , 22:37   Re: [CSS] Throwing Knives
Reply With Quote #306

That should do it.
necavi is offline
gamemann
Veteran Member
Join Date: Sep 2009
Location: San Antonio, Texas
Old 03-24-2012 , 01:03   Re: [CSS] Throwing Knives
Reply With Quote #307

Nice plugin! I use this on my surf dm server! Alot of people enjoy it
Just a few suggestions that i would like to put out to make the plugin even more cooler:
1. When the knife bounces off the wall it can still kill people that would be awesome!
2. When you throw a knife and it comes back and hits you, you die that would also be awesome

Those are the suggestions for now! It would be cool if you added them!
thanks,
gamemann
__________________

Click here for my GitHub page!
gamemann is offline
Send a message via Skype™ to gamemann
gamemann
Veteran Member
Join Date: Sep 2009
Location: San Antonio, Texas
Old 04-01-2012 , 14:23   Re: [CSS] Throwing Knives
Reply With Quote #308

^ Anyone wanna make that?
Would be cool!
__________________

Click here for my GitHub page!
gamemann is offline
Send a message via Skype™ to gamemann
zelitemaster
Junior Member
Join Date: Feb 2012
Old 04-05-2012 , 22:38   Re: [CSS] Throwing Knives
Reply With Quote #309

Is there any way to assign throwing knives only to people with a certain flag?
zelitemaster is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-06-2012 , 05:29   Re: [CSS] Throwing Knives
Reply With Quote #310

Quote:
Originally Posted by zelitemaster View Post
Is there any way to assign throwing knives only to people with a certain flag?
Here, compile this separate plugin yourself.
- Prevent player throw knife if not have access to adminflag "f" (slay) or override "cssthrowingknives_allow".
- Can change adminflag from admin_overrides.cfg using example "cssthrowingknives_allow" "c"
Spoiler


*edit
Haven't tested tough, just quick writed it.
__________________
Do not Private Message @me

Last edited by Bacardi; 04-06-2012 at 05:30.
Bacardi 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 01:49.


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