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

[CSS] Hostage Manager


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
KawMAN
SourceMod Donor
Join Date: Sep 2007
Location: Cracov
Plugin ID:
1789
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    15 
    Plugin Description:
    Changes Hostages in CS:S
    Old 07-08-2010 , 16:51   [CSS] Hostage Manager
    Reply With Quote #1


    Hostage Manager for CS:S


    Info:
    Plugin allows to change standard hostages (for now only models & sounds).

    Idea/Why?:
    First hostage manger was HostiTron:Source written by c0ldfyr3. Because its old, close source and crash my server i decide to port it to SourceMOD.

    Features:
    -Hostage Models change (up to 32 models)
    -Hostage Sounds change (will block standard, up to 64 sounds)
    -Models /Sounds Group system. Only plays sounds for models in the same gorup (by default up to 10 gorups, from 0 to 9)
    -Command based config - this allow to have for example different config set for each map (using another plugin)
    -Autoupdate (require Plugin Autoupdate by MikeJS)

    CVARS:
    sm_hostmgr - Control plugin state 1=Plugin On; 0=Off
    sm_hostmgr_models - Should replace models, 1=Yes 0=No
    sm_hostmgr_sounds - Should use custom sounds (will block standard), 1=Yes 0=No
    sm_hostmgr_autoupdate - Autoupdate plugin 1=Yes 0=No (Require Plugin Autoupdate by MikeJS)

    Server Side Hostage Models:
    http://code.google.com/p/hostage-manager/downloads/list
    http://www.c0ld.net/dls/pafiledb.php...=category&id=9

    Commands: (Server Commands)
    sm_hmgr_clear - Reset models & sounds configs (except download table)
    sm_hmgr_addmodel - Add model, syntax: <path_to_model> [group=0]
    examples:
    PHP Code:
    //Ads model to Korinv1_01.mdl to default group 0
    sm_hmgr_addmodel "hostitron/korin_v1/Korinv1_01.mdl"
    //like above
    sm_hmgr_addmodel "hostitron/korin_v1/Korinv1_01.mdl" 0
    //Ads model Korinv1_02.mdl to group 1
    sm_hmgr_addmodel "hostitron/korin_v1/Korinv1_02.mdl" 
    sm_hmgr_addsound - Add sound, syntax: <path> <type:0-Pain,1-Use,2-Unuse> [group=0]
    examples:
    PHP Code:
    //Adds Pain sound to gorup 1
    sm_hmgr_addsound "hostitron/girls/hpain/hpain1.wav" 0 1
    //Adds use sound to gorup 1
    sm_hmgr_addsound "hostitron/girls/huse/youlead.wav" 1 1
    //Adds UnUse sound to gorup 1
    sm_hmgr_addsound "hostitron/girls/hunuse/illstayhere.wav" 2 1 
    sm_hmgr_adddownloadlist - Add files to download table from list, syntax: <path_to_list>
    example:
    PHP Code:
    sm_hmgr_adddownloadlist "cfg/sourcemod/hmgr/korinfiles.txt" 
    sm_hmgr_adddownload - Add single file to download table
    syntax: <path_to_file>
    sm_hmgr_print - Print current config

    Notes:
    -You can download server-side hostage models from:
    http://code.google.com/p/hostage-manager/downloads/list
    http://www.c0ld.net/dls/pafiledb.php...=category&id=9

    -In zip pack there is ready to use korin config, just download korin models pack, upload to server(and FastDownload), and uncomment
    PHP Code:
    exec sourcemod/hmgr/korin.cfg 
    in hostagemgr.cfg

    -If you want increase Groups, Skins, Sounds limits in source (.sp) change
    PHP Code:
    #define MAXSOUNDS 64 //Max sounds
    #define MAXGROUPS 10 //Max host groups
    #define MAXSKINS 32 //Max skins 
    compile & upload

    -With sm_hmgr_clear and some Map config Plugin you can use different config for specified maps.

    Todo:
    - Rest of HT:S funcitons
    - Hostage NoBlock
    - Uniqe hostags when number of models > nr of hostages
    - What more ?

    Installation:
    1. Download plugin zip package and upload to "orangebox/cstrike"
    2. Download some Hostage Models Package & upload to server
    (For example Korin)
    3. Create config file for your models package
    (For Korin is already in cfg/sourcemod/hmgr/korin.cfg)
    4, Create download list file for your models package
    (For Korin is already in cfg/sourcemod/hmgr/korinfiles.txt)
    5. Add execute package config line to hostagemgr.cfg, like this
    PHP Code:
    exec sourcemod/hmgr/korin.cfg 
    (or for example to cs_.cfg in some Map config plugin)
    6. Change map or restart server

    Credits:
    - c0ldfyr3 for idea and some exist models
    - SWAT_88 for files download functions
    - AlliedModders community

    Changelog:
    1.0.0 - 8.07.2010 - Public Release
    1.0.1 - 9.07.2010 - Fixed error when changing sm_hostmgr_autoupdate withuot Plugin Autoupdater

    http://hostage-manager.googlecode.com/
    Attached Files
    File Type: zip HostageManager.zip (20.6 KB, 1657 views)
    File Type: sp Get Plugin or Get Source (hostagemgr.sp - 1200 views - 22.1 KB)
    __________________

    Last edited by KawMAN; 08-08-2010 at 04:19.
    KawMAN is offline
    Send a message via ICQ to KawMAN Send a message via Skype™ to KawMAN
     



    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 13:48.


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