Raised This Month: $ Target: $400
 0% 

[DoD:S] DoD Bonus Round Custum


Post New Thread Reply   
 
Thread Tools Display Modes
Author
micmacx
Member
Join Date: May 2021
Plugin ID:
8589
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Day of Defeat: Source
Plugin Dependencies:
    Servers with this Plugin:
    1 
    Plugin Description:
    This plugin can beacon the losing Team, give speed to the Winners, play a sound when a team win, put skin to winner and other skin to looser and when map change, it can be anothers skins, sound, you can put 99 different skins.
    Old 11-15-2023 , 19:15   [DoD:S] DoD Bonus Round Custum
    Reply With Quote #1

    I am not the author of this plugin, but I fixed some bugs and added some improvements.
    I used and modified code from 3 different plugins for this.
    Fix Beacon not work.
    Fix for don't playing sound to player who not downloading sound files.
    Added the ability to create 99 different configurations and change the configuration file at map start.
    Added debug log file.

    Authors :

    Author : <eVa>Dog's Dog Bonus Round, Modified by vintage, Modified by Micmacx
    http://dodsplugins.mtxserv.fr/ and https://forums.alliedmods.net/showthread.php?p=2811152

    Based for handling precached and load sounds : Admin Sounds 1.2.2 by Cadav0r
    https://forums.alliedmods.net/showthread.php?p=785989

    Based for loading file to plugin : SM Skinchooser Version: 5.2 by Andi67
    https://forums.alliedmods.net/showthread.php?t=87597




    Description :

    This plugin can beacon the losing Team, give speed to the Winners, play a sound when a team win, put skin to winner and other skin to looser and when map change, it can be anothers skins, sound, you can put 99 different skins.

    Click image for larger version

Name:	plugin.jpg
Views:	49
Size:	73.8 KB
ID:	202197

    Setting :

    General Setting file :
    Path :
    HTML Code:
    dod/cfg/dod_b_r_custum/dod_b_r_custum.cfg
    PHP Code:
    // This file was auto-generated by SourceMod (v1.11.0.6502)
    // ConVars for plugin "dod_b_r_custum.smx"


    // 1 : Enable / 0 : Disable Plugin beacon
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    dod_b_r_custum_beacon_enable "1"

    // 1 : Enable / 0 : Disable Help Plugin Log for files skin and sound
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    dod_b_r_custum_debug "0"

    // 1 : Enable / 0 : Disable Plugin files skin and sound
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    dod_b_r_custum_files "0"

    // Enabled/Disabled Kick players who do not download skins
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    dod_b_r_custum_kicknodl "1"

    // Number of Config File
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "99.000000"
    dod_b_r_custum_nbre_config "0"

    // 1 : Enable / 0 : Disable Plugin Sound
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    dod_b_r_custum_sound_enable "0"

    // 1 : Enable / 0 : Disable Plugin speed
    // -
    // Default: "1"
    // Minimum: "0.000000"
    // Maximum: "1.000000"
    dod_b_r_custum_speed_enable "1"

    // Time Bonus Round
    // -
    // Default: "15"
    // Minimum: "0.000000"
    // Maximum: "30.000000"
    dod_b_r_custum_time_enable "15" 
    Number of Config File :
    The skin configuration files come in pairs: win1.ini and loose1.ini for example.
    If you have configured win1.ini, win2.ini, win3.ini and loose1.ini, loose2.ini, loose3.ini, you are using 3 different configurations.
    PHP Code:
    // Number of Config File
    // -
    // Default: "0"
    // Minimum: "0.000000"
    // Maximum: "99.000000"
    dod_b_r_custum_nbre_config "3" 

    Setting for each skin :
    Folder :
    HTML Code:
    dod/addons/sourcemod/configs/dod_b_r_custum/*.ini
    There is only 2 special commands for theses files :
    If you don't want to put skin for the first winning team, in win1.ini you put command "nosk" for noskin.
    If you don't want to load sound file you put one line with "noso" command.

    Into win1.ini :
    PHP Code:
    nosk
    noso 
    If You don't want to put skin for looser team, you put "nosk" into loose1.ini

    Into loose1.ini :
    PHP Code:
    nosk 
    Be carrefull :
    If you want to put a sound file, it must be in sound/myfolder/mysound.mp3 or sound/myfolder/mysound.wav and you must write into this file myfolder/mysound.wav
    Another important thing, if you disabled downloading sound files in your dod game, the plugin will not play the sounds even if you have downloaded them before.
    Small known bug: when you strat/restart server or when you go from 7 to 5 config files, sourcemod does not take into account directly when changing the map the value of the modified cvar, so to be sure that everything goes well, you have to make 2 map changes .



    [B]This is an example :[B]

    My win1.ini :
    PHP Code:
    models/player/vad36freddy/kruegerr.dx80.vtx
    models
    /player/vad36freddy/kruegerr.dx90.vtx
    models
    /player/vad36freddy/kruegerr.mdl
    models
    /player/vad36freddy/kruegerr.phy
    models
    /player/vad36freddy/kruegerr.sw.vtx
    models
    /player/vad36freddy/kruegerr.vvd
    materials
    /models/player/vad36freddy/eye-iris-blue.vmt
    materials
    /models/player/vad36freddy/eye-iris-blue.vtf
    materials
    /models/player/vad36freddy/eye-iris-blue_n.vtf
    materials
    /models/player/vad36freddy/freddy_colour-wao.vmt
    materials
    /models/player/vad36freddy/freddy_colour-wao.vtf
    materials
    /models/player/vad36freddy/freddy_normals.vtf
    materials
    /models/player/vad36freddy/krueger.vmt
    materials
    /models/player/vad36freddy/krueger.vtf
    materials
    /models/player/vad36freddy/krueger_n.vtf
    materials
    /models/player/vad36freddy/lynch_hands.vmt
    materials
    /models/player/vad36freddy/lynch_hands.vtf
    materials
    /models/player/vad36freddy/lynch_hands_n.vtf
    materials
    /models/player/vad36freddy/mouth.vmt
    materials
    /models/player/vad36freddy/mouth.vtf
    dod_halloween_bonusround
    /sound.mp3 
    My loose1.ini :
    PHP Code:
    models/player/vad36fortnite/lollipop.dx80.vtx
    models
    /player/vad36fortnite/lollipop.dx90.vtx
    models
    /player/vad36fortnite/lollipop.mdl
    models
    /player/vad36fortnite/lollipop.phy
    models
    /player/vad36fortnite/lollipop.sw.vtx
    models
    /player/vad36fortnite/lollipop.vvd
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_body_body_d.vmt
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_body_body_d.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_body_body_n.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_body_body_s.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_faceacc_d.vmt
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_faceacc_d.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_faceacc_n.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_faceacc_s.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_head_d.vmt
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_head_d.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_head_n.vtf
    materials
    /models/player/vad36fortnite/lollipop/t_f_med_lollipop_head_s.vtf 
    Facility :
    1. Download Zip file.
    2. Unzip this file in your computer.
    3. Upload all file in your server, respect the folder architecture.
    4. Change map or restart server, plugin create cfg file.
    5. Setting ini files.
    6. Setting cfg file.


    Important :
    If you have problems with skin configuration, I added a logdebug mode which will record in a log file everything that works and does not work in order to help you to setting the plugin. By default, this mod is disabled, you must activate it in cfg file. Log file is located in sourcemod log folder.
    Folder :
    HTML Code:
    dod/addons/sourcemod/logs/B_R_Custum2023-11-15 23-22.log

    Update 1.0 to 1.1 :

    Don't worry, you won't have to reconfigure everything, the skin configuration files remain the same.
    1. Download Zip file.
    2. Unzip this file in your computer.
    3. Stop server.
    4. Delete dod/cfg/dod_b_r_custum/dod_b_r_custum.cfg
    5. Delete dod/addons/sourcemod/plugins/dod_b_r_custum.smx
    6. Upload only dod/addons/sourcemod/plugins/dod_b_r_custum.smx
    7. Start server.
    8. Setting : dod/cfg/dod_b_r_custum/dod_b_r_custum.cfg
    9. Change map.


    Changelog :
    Plugin 1.0: 16/11/2023
    Plugin 1.1: Fix impossible to use only 1 config file and various changes for ease of understanding..

    Have fun...
    Attached Files
    File Type: zip dod_b_r_custum_examples.zip (4.6 KB, 258 views)
    File Type: zip dod_b_r_custum.zip (17.6 KB, 31 views)
    File Type: sp Get Plugin or Get Source (dod_b_r_custum.sp - 73 views - 14.5 KB)
    __________________

    Last edited by micmacx; 11-19-2023 at 13:09.
    micmacx is offline
    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:05.


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