Raised This Month: $32 Target: $400
 8% 

[ANY] 1v1 duels !


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen
Plugin ID:
4780
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow you to create arena over the map and let your players fight inside !
    Old 08-14-2015 , 05:06   [ANY] 1v1 duels !
    Reply With Quote #1

    1vs1 Duels !

    Description :
    This simple plugin allow you to create arena where players can fight in 1 versus 1 !
    All arena are saved into a config file, no database setup required !
    Original request : https://forums.alliedmods.net/showthread.php?t=264373

    Screenshots & Videos :
    None for now.

    click on image for 1920x1080 resolution.
    If someone wanna do a video / pictures about this plugin, you can send me the link and I will post it here.

    Cvar & installation

    Cvar :

    sm_1v1duel_number_of_frag "3" //Default 3
    How much frag to do to win a duel ?

    Commands :

    Admin command :

    sm_createarena - create a arena, require the CONFIG admin acces !

    sm_viewarena - List by names all arenas present on the map, require the CONFIG admin acces !

    Player command :

    sm_duel - Challange someone for a duel !
    sm_1v1 - Challange someone for a duel !

    Installation :

    1) Install simple chat processor : https://forums.alliedmods.net/showthread.php?t=286913
    2) Put 1v1duel.smx in your plugins folder.
    3) You are done!

    For those who wanna compille the plugin manually, you will need :
    • SCP - Simple chat processor
    • MoreColors

    Configuration

    Well... You can check the files inside the 1v1duel folder, himself inside of the configs folder.

    Bugs :


    Any ! Yay everything is fully working !

    Request & to do:

    • Create a competition mode, where like, 20 players are put in 10 arena and fight until they left only 1 player.

    Logs :
    ------
    1.0 : First public release.
    -------

    IMPORTANT NOTE:
    Nothing.
    Attached Files
    File Type: sp Get Plugin or Get Source (1v1duel.sp - 517 views - 12.7 KB)
    File Type: smx 1v1duel.smx (18.2 KB, 509 views)
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 03-19-2019 at 11:39.
    Arkarr is offline
    TheUnderTaker
    Senior Member
    Join Date: Dec 2013
    Location: Israel
    Old 08-15-2015 , 09:07   Re: [ANY] 1v1 duels !
    Reply With Quote #2

    Nice, Would be good if you will do Backstab fights, Headshot fights, Airblast fights.
    Lemme give that examples:

    BackStab:
    PHP Code:
    public Action:OnBackstab(victim, &attacker, &inflictor, &Float:damage, &damagetype, &weaponFloat:damageForce[3], Float:damagePosition[3], damagecustom

        if (
    victim && victim <= MaxClients && (damagecustom != TF_CUSTOM_BACKSTAB))
        { 
            
    damage=0.0
            return 
    Plugin_Changed
        }
        else {
            
    damage=200.0;
            return 
    Plugin_Changed;
        }

    Sniper Headshot:

    PHP Code:
    public Action:OnHeadshot(victim, &attacker, &inflictor, &Float:damage, &damagetype, &weaponFloat:damageForce[3], Float:damagePosition[3], damagecustom

        if (
    victim && victim <= MaxClients && (damagecustom != TF_CUSTOM_HEADSHOT))
        { 
            
    damage=0.0
            return 
    Plugin_Changed
        }
        else {
            
    damage=200.0;
            return 
    Plugin_Changed;
        }

    AirBlast:
    PHP Code:
    public Action:OnAir(victim, &attacker, &inflictor, &Float:damage, &damagetype, &weaponFloat:damageForce[3], Float:damagePosition[3], damagecustom)
    {
    if((
    GetEntityFlags(victim) & FL_ONGROUND)){
    if(
    air[victim]){ OnLand(Float:damage); }
    air[victim] = false;
        }else{
            if(!
    air[victim] && IN_JUMP) { OnJump(Float:damage); }
            
    air[victim] = true;
        }
        return 
    Plugin_Continue;
    }

    OnLand(&Float:damage){
        
    damage=0.0;
    }

    OnJump(&Float:damage){
        
    damage=30.0;

    These codes are for TF2.
    __________________
    SourcePawn, C# and C++ Programmer.

    My plugin list

    Last edited by TheUnderTaker; 08-15-2015 at 09:08.
    TheUnderTaker is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 08-15-2015 , 09:10   Re: [ANY] 1v1 duels !
    Reply With Quote #3

    Okay.

    EDIT: Busy right now.
    __________________
    Want to check my plugins ?

    Last edited by Arkarr; 08-18-2015 at 13:14.
    Arkarr is offline
    irepz
    Senior Member
    Join Date: Mar 2013
    Location: France
    Old 08-18-2015 , 09:35   Re: [ANY] 1v1 duels !
    Reply With Quote #4

    Great work, seems realy interesting but I have a (dulb) question :

    Is the plugin working on standalone or is it an addon to splewis 1v1 plugin ?
    __________________
    irepz is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 08-18-2015 , 13:14   Re: [ANY] 1v1 duels !
    Reply With Quote #5

    Quote:
    Originally Posted by irepz View Post
    Great work, seems realy interesting but I have a (dulb) question :

    Is the plugin working on standalone or is it an addon to splewis 1v1 plugin ?
    standalone, look at the installation part, simply put the smx into your plugins folder, and it should work just fine !
    __________________
    Want to check my plugins ?
    Arkarr is offline
    SPYderman
    Senior Member
    Join Date: Aug 2013
    Old 08-21-2015 , 02:18   Re: [ANY] 1v1 duels !
    Reply With Quote #6

    I'm using this for Fistful of Frags but when I challenge someone to a duel, it doesn't prompt them. Instead, it prompts me saying they are asking me to duel.

    Also, when a duel begins it doesn't teleport us to the positions either, however it still keeps track of scores.
    SPYderman is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 08-21-2015 , 16:08   Re: [ANY] 1v1 duels !
    Reply With Quote #7

    Quote:
    Originally Posted by SPYderman View Post
    I'm using this for Fistful of Frags but when I challenge someone to a duel, it doesn't prompt them. Instead, it prompts me saying they are asking me to duel.

    Also, when a duel begins it doesn't teleport us to the positions either, however it still keeps track of scores.
    Strange. Gonna give a look.
    __________________
    Want to check my plugins ?
    Arkarr is offline
    fiala06
    AlliedModders Donor
    Join Date: Mar 2009
    Location: Eugene, OR
    Old 08-21-2015 , 18:37   Re: [ANY] 1v1 duels !
    Reply With Quote #8

    Quote:
    Originally Posted by SPYderman View Post
    I'm using this for Fistful of Frags but when I challenge someone to a duel, it doesn't prompt them. Instead, it prompts me saying they are asking me to duel.

    Also, when a duel begins it doesn't teleport us to the positions either, however it still keeps track of scores.
    Same for me. It would be nice if possible, after your death you get teleported back to the duel spot to continue your duel if your playing say first to 3. Otherwise we have to just play first kill wins the duel. Would be nice if others couldn't interfere with your duel.
    __________________
    fiala06 is offline
    Arkarr
    Veteran Member
    Join Date: Sep 2012
    Location: Just behind my PC screen
    Old 08-22-2015 , 04:39   Re: [ANY] 1v1 duels !
    Reply With Quote #9

    God. I think, I'm just gonna remove the plugin until I really finish it. I have forgot a lot of things.
    __________________
    Want to check my plugins ?
    Arkarr is offline
    Baws
    Veteran Member
    Join Date: Oct 2012
    Old 02-02-2016 , 17:17   Re: [ANY] 1v1 duels !
    Reply With Quote #10

    Suggestions:

    1- Make it compatible with splewis' multi1v1 plugin?
    2- Instead of creating an arena, you should check if there's an arena empty and put both players in that arena until some of them dies. If all the arenas are full, unable to challenge.


    __________________
    Like my clean plugins and work?
    Baws 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 17:49.


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