Raised This Month: $100 Target: $400
 25% 

Duel Mod v1.2


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   Emp` (115)
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-01-2008 , 18:31   Duel Mod v1.2
Reply With Quote #1

Duel Mod

Description
This mod is designed to allow dueling, where players challenge each other and engage in battle. It is designed for the mod "The Specialists", but can be used on other mods.

Installation
Install like any other plugin, then add/modify the following into your amxx.cfg:

Code:
// Duel Mod

// Whether or not Duel Mod is on
// 0 - off
// 1 - on
amx_duel 1

// Whether or not players can only injure each other while dueling
// 0 - off
// 1 - on
amx_duel_onlyduel 1

// Whether or not to block the "kill" command while in duels
// 0 - off
// 1 - on
amx_duel_blockkill 1

// Countdown timer for duels to begin
// 0 - disabled
// Use any other number up to 10 for timer
amx_duel_countdown 3

// Transparency of other players while dueling
// 0 - invisible
// 255 - visible as normal
// any other value - somewhere in between
amx_duel_transparency 80

// Punching bag mode
// Note: requires amx_duel_onlyduel 1 to be
// active
// 0 - off
// 1 - on
amx_duel_punchingbag 1

// Glow setting
// 0 - no glow, just transparency
// 1 - glow randomly
// 2 - hologram (stub)
amx_duel_glow 1
Commands
say /duel - Will challenge the player being looked at to a duel.
say /accept - Will accept a challenge. Note that you can also use /duel, but you must be looking at the person who challenged you. With /accept, the last person to challenge you will be accepted.
say /punchingbag - Turns the player into a punching bag (requires amx_duel_punchingbag to be set to 1).
say /deny - Denies the last person who challenged you until you turn it off by saying /duel or /accept to them.
say /pair - Pairs you with anyone else who typed that command.

Credits
Havoc9 - Testing help (specifically SaderBiscut and Jimmy Striker).
Lord_Destros - Testing help.
Steely - Testing help.
sawyer
- Testing help.

coderiz - New semiclip method.
Charming - Encouragement.

Demonstration Video
http://www.youtube.com/watch?v=m8Z-EL7N-34
Attached Files
File Type: sma Get Plugin or Get Source (duelmod.sma - 2618 views - 16.2 KB)
__________________

Last edited by Hawk552; 06-09-2008 at 11:23. Reason: upped to v1.2
Hawk552 is offline
Send a message via AIM to Hawk552
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 06-01-2008 , 18:49   Re: Duel Mod v1.0
Reply With Quote #2

Looks good . =) I will try .
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-02-2008 , 00:44   Re: Duel Mod v1.0
Reply With Quote #3

interesting idea.

Code:
//lines 171-173
	new Names[2][33]
	get_user_name(id,Names[0],32)
	get_user_name(Index,Names[1],32)
//lines 185-186
	new Name[33]
	get_user_name(id,Name,32)
Code:
//instead of setting to 100.0, how about getting their max_health and setting it to that (some mods don't have 100.0 as the max health)
	set_pev(id,pev_health,100.0)
	set_pev(Index,pev_health,100.0)
Something also seems wrong with the PreThink and PostThink when more than one set of people are dueling, but I can't quite set my finger on it.

Suggestion: when you aren't aiming at someone when you say /duel, it brings up a menu of players to choose from.

Approved. Leaving in New Submissions for a week so people can see it.

Last edited by Emp`; 06-02-2008 at 00:48.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-02-2008 , 00:51   Re: Duel Mod v1.0
Reply With Quote #4

Thanks, Emp`!

It's actually been tested and works fine. I plan on extending it further, but the stuff that's there right now works well (at least on TS).

I appreciate the menu suggestion but most TS duel maps are tiny and it isn't hard to find the person you want to duel. I may add it if more people are interested in it for mod independence, but otherwise I don't think it's necessary.

Also, I fixed the first block but the second would screw up TS compatibility as the max health for it is 150 but players almost always have 100. The changes will appear in the next version, which I'll probably release in the next day or so.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
steely
Junior Member
Join Date: Dec 2007
Old 06-02-2008 , 02:24   Re: Duel Mod v1.0
Reply With Quote #5

I will give this plugin a whirl on tuesday and possibly run it on a FU server depending on how much i like it... Also tell me when you need testers for your plugins, b/c i can beta test... After all The Specialists is the only game i play, and i am always down to try new stuff on it
steely is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-02-2008 , 15:09   Re: Duel Mod v1.1
Reply With Quote #6

Updated to version 1.1. See the changelog in the script for more details.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Dr. Jan Itor
Veteran Member
Join Date: Mar 2008
Location: there.
Old 06-02-2008 , 17:09   Re: Duel Mod v1.1
Reply With Quote #7

already approved wow gj hawk lol
__________________
Dr. Jan Itor is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 06-02-2008 , 19:32   Re: Duel Mod v1.1
Reply With Quote #8

Added demonstration video.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 06-02-2008 , 22:47   Re: Duel Mod v1.1
Reply With Quote #9

Great Hawk, I tried to play your YouTube video in class and we were taking our final and it was dead silent. Then that stupid song came on.

Thanks for the song XD

Nice plugin btw
Styles is offline
Send a message via AIM to Styles Send a message via MSN to Styles
AntiBots
Veteran Member
Join Date: May 2008
Location: La Plata, Bs As, Argenti
Old 06-07-2008 , 11:46   Re: Duel Mod v1.1
Reply With Quote #10

what map is on the video?
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
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 05:14.


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