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

1v1 Knife Fight (1.2.1, Updated: 10/17/2008)


Post New Thread Reply   
 
Thread Tools Display Modes
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-13-2008 , 19:08   Re: 1v1 Knife Fight (1.1, Updated: 10/7/2008)
Reply With Quote #111

Quote:
Originally Posted by |GsX| GrimReaper View Post
Some ideas...

1. If people don't finish the knife fight in 30 seconds, either slay them both, or just trigger round_end if possible.

2. To eliminate issues with give or strip commands, can't you just hook the command and do a Plugin_Handled or something to prevent the command from going on to it's original plugin. You could then add each new give command associated with a plugin someone reports as causing issues. You could do an IF for a var establishing that a knife fight has begun, and then reset the var when the fight is over, on player_death.
I've already finished coding the 30 second (configurable timer). I'm just waiting for reports back on testing.

My weapon stripping is all hooked using Post, not Pre. I'm not blocking or doing anything of the sort with the weapon stripping or giving, nor do I have the ability to.

The problem with the GG4 crash was that they were both attempting to do something at the same time apparently. Delaying mine by 0.1 resolved the crash on my side during testing.

I already have a bool called isFighting which works great.
__________________
XARIUS is offline
|GsX| GrimReaper
Senior Member
Join Date: Sep 2008
Old 10-13-2008 , 22:40   Re: 1v1 Knife Fight (1.1, Updated: 10/7/2008)
Reply With Quote #112

I was thinking that since any command that gives something must be tied to the original valve command for "give", or at least that is my logic. So...

RegServerCmd(give, BLOCK_GIVE, "Hook to block giving items during knife fight", 0) or maybe RegConsoleCmd is needed, I don't know, just an idea. Then for the Action BLOCK_GIVE simply put return Plugin_Handled.
|GsX| GrimReaper is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-14-2008 , 10:38   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #113

Updated to 1.2. Please see changelog. Translations must be updated.
__________________
XARIUS is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 10-14-2008 , 16:59   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #114

Thanks for all the hard work. Its running really nice. The timer was really a must. This is the best last man standing mod out there.

Awesome work!

TigerOx
tigerox is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-14-2008 , 23:23   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #115

Great plugin. Could we possibly get a cvar for a minimum number of players connected to the server? Also, how about model support for the winner/loser (i.e. turn the loser into a chicken the next round).
thetwistedpanda is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-15-2008 , 09:32   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #116

Quote:
Originally Posted by thetwistedpanda View Post
Great plugin. Could we possibly get a cvar for a minimum number of players connected to the server? Also, how about model support for the winner/loser (i.e. turn the loser into a chicken the next round).
Thanks, Panda. I'll gladly add a cvar for minimum number of players. What sort of default value are you looking for. Four? Five? It's technically already three.

Though I've written a few plugins now, I still have never messed with model stuff. I'll add in the cvar for next version, and then look into model support afterwards, as I'm sure that will take me a bit longer. It would be fun!
__________________

Last edited by XARIUS; 10-15-2008 at 09:38.
XARIUS is offline
PStar
Veteran Member
Join Date: Mar 2008
Old 10-15-2008 , 13:14   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #117

Just a tought.
Could you make it so that in the menu the options would only respond to the keys "5" and "6"?
For example:
Do you wanna knife fight?
"5" Yes
"6" No

Cause many players accepts or declines if it pops up when they wanna change weapon.


And yes on the next few days atlast i will have the time to test the plugin out. Why did it crash and what could be the problem.
PStar is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-15-2008 , 20:09   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #118

Quote:
Originally Posted by PStar View Post
Just a tought.
Could you make it so that in the menu the options would only respond to the keys "5" and "6"?
For example:
Do you wanna knife fight?
"5" Yes
"6" No

Cause many players accepts or declines if it pops up when they wanna change weapon.
I'll do some research and see if there is a way to modify the menu options. My initial guess is, the way I have it implemented (using the SM panels system), it's not possible.
__________________
XARIUS is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-15-2008 , 20:32   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #119

Any even number would suffice, such as 4 or 6. It's highly annoying when there's only 3 players online (say early in the morning) and every 30 seconds there's a knife vote.
thetwistedpanda is offline
XARIUS
SourceMod Donor
Join Date: May 2008
Location: Atlanta, GA
Old 10-16-2008 , 08:40   Re: 1v1 Knife Fight (1.2, Updated: 10/14/2008)
Reply With Quote #120

Quote:
Originally Posted by thetwistedpanda View Post
Any even number would suffice, such as 4 or 6. It's highly annoying when there's only 3 players online (say early in the morning) and every 30 seconds there's a knife vote.
Attached is a version which includes sm_knifefight_minplayers (Default: 4).

Edit: Attachment updated on first page.
__________________

Last edited by XARIUS; 10-17-2008 at 09:32.
XARIUS is offline
Reply



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 19:01.


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