AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CSS] Hostage Manager (https://forums.alliedmods.net/showthread.php?t=131770)

KawMAN 07-08-2010 16:51

[CSS] Hostage Manager
 
4 Attachment(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/

snoopass 07-22-2010 01:02

Re: [CSS] Hostage Manager
 
Cool ! Thx :)

Before this, i use a metamod plugin on my server. But it doesīt work after great css update.

Itīs cool man :)

deejay87 07-22-2010 17:17

Re: [CSS] Hostage Manager
 
Very nice this hostages :)
4 girls with me in the garage !!
http://forum.mondialservers.com/imag..._forum/tk2.jpg

The-Angelus 08-04-2010 18:28

Re: [CSS] Hostage Manager
 
Thank you for this addon

By cons I have a little trouble, I added four hostages. Sometimes two or three hostages are identical.

mjmfighter 08-29-2010 00:18

Re: [CSS] Hostage Manager
 
i like this plugin, except i ran into a problem.

I started my server with it and it worked fine, all the hostages had changed into the girls and whatnot, but then the map changed and the hostages changed into error signs. Anyone else having this problem?

Zydu 10-05-2010 12:43

Re: [CSS] Hostage Manager
 
Is there a possibility to force hostage models to download only when cs_ map is on? Because they're downloading for new players no mater what kind of map is on.

iamseph 01-09-2011 17:41

Re: [CSS] Hostage Manager
 
Could this be modified so that a different set of models are selected for a specific map? So you have one default model set for any map which doesn't have it's own set, and you can set a given map name to use a specific model list as a cvar.

mabo666 01-26-2011 18:23

Re: [CSS] Hostage Manager
 
can you fix the plugin? i cant download it, it keeps saying:
Plugin failed to compile! Please try contacting the author.

KawMAN 01-27-2011 19:32

Re: [CSS] Hostage Manager
 
compiled version is in zip package

davidov 10-22-2011 05:46

Re: [CSS] Hostage Manager
 
running css windows srcds with sourcemod 138 and metamod 187, i get these errors at loading...
Code:

[SM] Plugin encountered error 15: Array index is out of bounds
[SM] Displaying call stack trace for plugin "hostagemgr.smx":
[SM]  [0]  Line 644, hostagemgr.sp::ReadDownloadsSimple()
[SM]  [1]  Line 259, hostagemgr.sp::CmdAddDownloadList()



All times are GMT -4. The time now is 17:28.

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