AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Duel Mod v1.2 (https://forums.alliedmods.net/showthread.php?t=72168)

Hawk552 06-01-2008 17:31

Duel Mod v1.2
 
1 Attachment(s)
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

Fry! 06-01-2008 17:49

Re: Duel Mod v1.0
 
Looks good . =) I will try .

Emp` 06-01-2008 23:44

Re: Duel Mod v1.0
 
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.

Hawk552 06-01-2008 23:51

Re: Duel Mod v1.0
 
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.

steely 06-02-2008 01:24

Re: Duel Mod v1.0
 
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

Hawk552 06-02-2008 14:09

Re: Duel Mod v1.1
 
Updated to version 1.1. See the changelog in the script for more details.

Dr. Jan Itor 06-02-2008 16:09

Re: Duel Mod v1.1
 
already approved wow gj hawk lol

Hawk552 06-02-2008 18:32

Re: Duel Mod v1.1
 
Added demonstration video.

Styles 06-02-2008 21:47

Re: Duel Mod v1.1
 
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 :)

AntiBots 06-07-2008 10:46

Re: Duel Mod v1.1
 
what map is on the video?


All times are GMT -4. The time now is 19:24.

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