Thread: [Plugin] PVP Enable

Results 1 to 3 of 3
  1. #1
    Registered User Dr.Abc's Avatar
    Join Date
    Sep 2018
    Posts
    5

    Post [Plugin] PVP Enable

    Much Thanks to w00tguy!
    I learned from his plugin how to adjust armor's ratio!
    And part of this plugin comes from his code!

    A very simple plugin to enable players pvp.
    You can chose FFA , TDM for time or TDM for scores.

    To use it you should put these in your svencoop/default_plugin.txt
    Code:
    "plugin"   
        {
            "name" Pvp
            "script" Pvp
        }
    And create a file named PVPMapList.txt in scripts/plugin like this
    Code:
    crossfire 0
    crossfireTDM 1 140
    crossfireTDMScore 2 77
    0 = FFA,None = Default secs.
    1 = TDM For time,140 = 140 secs.
    2 = TDM For scores,77 = 77 scores.

    then you need create another file named pvp_skl.txt in scripts/plugin and put these sh1t in it.
    Code:
    mp_banana 0
    mp_nomedkit 1
    mp_grapple_mode 1
    mp_forcerespawn 1
    mp_falldamage 0
    mp_modelselection 0
    mp_multiplespawn 0
    mp_weaponstay 0
    mp_weapon_droprules 2
    mp_ammo_droprules 2
    
    mp_item_respawndelay 30
    mp_ammo_respawndelay 30
    mp_weapon_respawndelay 30
    mp_weaponfadedelay 120
    
    mp_disable_autoclimb 1
    mp_disable_pcbalancing 1
    mp_disable_medkit_points 1
    
    weaponmode_shotgun 1
    weaponmode_displacer 1
    
    sv_accelerate 10
    sv_airaccelerate 10
    sv_friction 4
    sv_gravity 800
    sv_maxspeed 270
    sv_maxvelocity 4096
    sv_wateraccelerate 10
    sv_waterfriction 1
    sv_zmax 16000
    
    sk_player_head 3.8
    sk_player_chest 1
    sk_player_stomach 1
    sk_player_arm 0.7
    sk_player_leg 0.7
    
    sk_suitcharger 35
    sk_battery 15
    sk_healthcharger 60
    sk_healthkit 15
    
    sk_plr_crowbar 10
    sk_plr_9mm_bullet 15
    sk_plr_357_bullet 40
    sk_plr_9mmAR_bullet 8
    sk_plr_9mmAR_grenade 100
    sk_plr_buckshot 5
    sk_plr_xbow_bolt_monster 140
    sk_plr_rpg 100
    sk_plr_gauss 30
    sk_plr_secondarygauss 270
    sk_plr_egon_narrow 6
    sk_plr_egon_wide 14
    sk_plr_hand_grenade 100
    sk_plr_satchel 150
    sk_plr_tripmine 150
    sk_plr_HpMedic 10
    sk_plr_wrench 20
    sk_plr_grapple 25
    sk_plr_uzi 10
    sk_556_bullet 15
    sk_hornet_pdmg 12
    sk_plr_762_bullet 100
    sk_plr_spore 50
    sk_plr_shockrifle 15
    sk_shockroach_dmg_xpl_touch 350
    sk_shockroach_dmg_xpl_splash 150
    sk_plr_displacer_other 250
    sk_plr_displacer_radius 300
    This plugin could only work with these which none-pvp maps. For example ,you can just copy and put HLDM or OF map into SC with this plugin .
    If you add a map with build-in pvp into list ,it will mess this plugin and this plugin won't work correctly.

    And you can do some settings in the the header of the as file.
    Code:
    //Setting
    const float g_WaitingTime = 30;                        //TDM Waiting Time
    const int g_WarningTime = 60;                        //Warning Time
    const int g_iBanlance = 2;                        //The gap for autobalance (minimum is 2)
    const int g_LeftTime = 600;                        //Default Game time
    const int g_MaxScore = 50;                        //Defalut Max team score
    const int HUD_CHAN_PVP = 14;                        //HUD Channel
    const int m_strBatteryHealth = 7;            //Battery supplies
    const string g_PVPMapFile = "scripts/plugins/PVPMapList.txt";        //file name
    const string g_PVPSkillFile = "scripts/plugins/pvp_skl.txt";        //file name
    const string MenuTitle = "Chose Your Team";            //Chose Your Team
    const bool IsClassMode     = true;                        //Is classic Mode
    const float ARMOR_RATIO = 0.2f;                     //80% Ratio
    const float ARMOR_BONUS = 0.5f;                        //150% Bounus
    Click image for larger version. 

Name:	20181210223023_1.jpg 
Views:	119 
Size:	312.2 KB 
ID:	18269Click image for larger version. 

Name:	20181210224517_1.jpg 
Views:	90 
Size:	332.2 KB 
ID:	18271Click image for larger version. 

Name:	20181210224451_1.jpg 
Views:	70 
Size:	262.7 KB 
ID:	18270

    Get the code here.
    Get the extra file here.

    Changelog
    2018/12/20 - Add support for maps which use info_ctfspawn as spawn.

    ToDo
    - Add support for maps which use info_ctfbase and info_ctfflag.(It's really too hard for me ahhhhhhhh.)
    Last edited by Dr.Abc; 24-02-2019 at 08:10 AM. Reason: Operition Health...


  2. #2
    Registered User
    Join Date
    Feb 2017
    Posts
    22

    Re: [Plugin] PVP Enable

    Hello this script is only for TDM ?
    Can you invite DM please?

  3. #3
    Server Owner Enrory's Avatar
    Join Date
    Dec 2016
    Location
    Austria
    Posts
    127

    Re: [Plugin] PVP Enable

    ye pls add pvp deathmatch without teams.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •