AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   SM_Hosties (https://forums.alliedmods.net/forumdisplay.php?f=155)
-   -   [CS:S/CS:GO] SM_Hosties (v2.2.0, 2015-08-15) (https://forums.alliedmods.net/showthread.php?t=108810)

dataviruset 11-09-2009 18:50

[CS:S/CS:GO] SM_Hosties (v2.2.0, 2015-08-15)
 
1 Attachment(s)
[CS:S/CS:GO] SM_Hosties v2
by: databomb, dataviruset and DorCoMaNdO

Description:

This is a re-write of SM_Hosties v1.x from dataviruset. This allows support for multiple LRs occuring simultaneously as well as a plethora of additional last request games and new cvars for the most customizable Hosties yet.
It opens up a new API for plugin developers to ask questions like if a player is a rebel as well as the ability to add third party last request games for each server independent of the Hosties plugin.

Features:

  • 33 Last Request Games included as default
    • Drunken Boxing
    • Most Jumps
    • Farthest Jump
    • Brink of Death
    • Race
    • Russian Roulette
    • Rebel
    • Low-Grav Knife Fight
    • Hi-Speed Knife Fight
    • Third Person Knife Fight
    • Drugged Knife Fight
    • Vintage (Normal) Knife Fight
    • Rock Paper Scissors
    • NoScope with any scoped weapon (4 choices)
    • Dodgeball
    • Hot Potato
    • Chicken Fight
    • Shot4Shot with any pistol (6 choices for CS:S, 7 for CS:GO)
    • Mag4Mag with any pistol (6 choices for CS:S, 7 for CS:GO)
    • Gun Toss
  • Third-party plugins for Custom Lastrequests
  • Check Players Command
  • Freekill Detection & Prevention
  • Game Description Override
  • Mute System with BaseComm Integration
  • No Block
  • Rules Command
  • Starting Weapons Payloads for CT & T
  • Round End Team Overlays

Hosties API (For developers):

For integration there are two natives provided: IsClientRebel and IsClientInLastRequest.
For adding custom LRs there are three natives provided: AddLastRequestToList, RemoveLastRequestFromList, and ProcessAllLastRequests.
Feel free to have a look at lastrequest_shotgunwars.sp and lastrequest_fruitninja.sp as they can be used as a reference to last request scripting.
ChangeRebelStatus is new in v2.1.0.

DorCoMaNdO developed an autostart feature which enables developers to add custom menus (for example, the menues on Knife Fight or Shot4Shot lastrequests).
Learn how by checking this example code.

General Chat Commands:
  • !rules
  • !lastrequest (also: !lr)
  • !checkplayers

Admin Commands:
!stoplr (also: !abortlr and !cancellr): Requires slay admin flag and will abort any and all active last requests.

Requirements:
SourceMod 1.7.0+

Needed for successful compilation:
EmitSoundAny

Uses natives from these plugins if found:
SteamWorks
SourceBans


Automatic Install Instructions:
The easiest way to install SM_Hosties v2 is this:
  1. Be sure that your server meets the requirements for SM_Hosties v2 (see above)
  2. Scroll down a bit on this page and download the ZIP file attached to this post (or from the mirror)
  3. Extract all files from the ZIP file into the cstrike folder of your server (all directories should match up with the folders in the ZIP file)
  4. Restart your server or let it change map
  5. Configure settings in cfg/sourcemod/sm_hosties2.cfg
  6. Done!

Manual Install Instructions:


NOTE: Do not compile any individual file such as lastrequest.sp in the hosties/ directory, compiling sm_hosties.sp will include these files.
If you'd like only lastrequest.sp then that is a separate discussion.

  1. Copy all files in the scripting/hosties/ directory to addons/sourcemod/scripting/hosties/
  2. Copy all files in the translation/ directory to addons/sourcemod/translations/
  3. Copy the hosties.inc and lastrequest.inc files to addons/sourcemod/scripting/include/
  4. Download sourcebans.inc, emitsoundany.inc and SteamWorks.inc from the links above and put them in addons/sourcemod/scripting/include/
  5. Copy lastrequest_shotgunwars.sp, lastrequest_fruitninja.sp and sm_hosties.sp to addons/sourcemod/scripting/
  6. If you are going to compile lastrequest_fruitninja, check that you have SMLIB in the include folder (all versions of SM_Hosties don't have it bundled), otherwise download it and put the include files in the addons/sourcemod/scripting/include/ folder.
  7. Compile sm_hosties, lastrequest_shotgunwars and lastrequest_fruitninja and move SMX files to addons/sourcemod/plugins/
  8. Run plugin for the first time and configure all settings in cfg/sourcemod/sm_hosties2.cfg

Upgrade Instructions:

  1. Rename your original sm_hosties2.cfg in cfg/sourcemod/ to sm_hosties2.backup.cfg
  2. Let the new version of the plugin start for the first time and create the new cfg file (or use the .cfg file that comes with the .zip).
  3. Look at the sm_hosties2.backup.cfg and merge your original settings with the new one.

Changes to Existing Cvars:

A few of the existing cvar settings in SM_Hosties v1.x have changed slighlty in v2. The v2 config file has been given a new name intentionally.
Really, you should consider to redo all configuration if you're upgrading from 1.x.

  • sm_hosties_lr_ts_max: This now controls the number of Ts allowed to have LRs going at the same time.
  • sm_hosties_mute_immune: This now uses flag CHARACTERS instead of names. (E.g. use "z" instead of "root".)
  • sm_hosties_lr_hp_teleport: Added new option (2)- teleport and freeze players.
  • sm_hosties_ct_start and sm_hosties_t_start should now include "weapon_knife" in the list.
  • sm_hosties_lr_s4s_shot_taken now applies to Mag4Mag as well as Shot4Shot.
  • sm_hosties_roundend_overlay_ct & sm_hosties_roundend_overlay_t now must specify the VTF file only
  • sm_hosties_lr_ns_delay is now an integer instead of a float.
  • sm_hosties_lr_s4s_dblsht_action now determines if sm_lr_rebel_action is followed or not (0 - no punishment, 1 - follow rebel_action)
  • sm_hosties_lr_s4s_shot_taken now includes Mag4Mag announcement when magazines are emptied

Special Thanks for Version 2:

  • psychonic - Answering any question I've had with SourceMod plugin coding
  • johan123jo - The blocking LR damage code and various bug fixes
  • MomemtumMori - Hosting the SVN for SM_Hosties v2 while under development
  • Berni - For helping with hull traces
  • dvander - Pointing out some architectural flaws with the Hosties API
  • Crosshair - Inspiration
  • CoMaNdO - Helping out with the development of SM_Hosties 2.1.0+ and the support for CS:GO
  • Bara - Helping out fixing things for 2.2.0

Thanks to the servers willing to run beta versions of this (for all the problems you never had to deal with, thank them):
Groger, OnlyFriends
Silence, XenoGamers

Help The Cause:

SM_Hosties v2 is over 5,500 lines of code and growing. There are a variety of ways you could help the project.
Firstly, we have a healthy list of new features that could be added if you have any experience with SourceMod and plugin development and would like to lend a hand. Also, with the addition of the Hosties API, we could make a custom LR game for your server in exchange for a small fee. AlliedMods is gracious enough to host all of this so, if you haven't already, make them a donation to support the hosting costs. Lastly, consider making a donation to us to help offset the cost of development and hosting. The barrage of DDoS attacks drives up the cost of hosting and without active servers, our interest in development would wither. Donations to Vintage Jailbreak or '][' E H \/\/ARRiORS will be split amongst databomb and dataviruset, just be sure to reference this is for the Hosties project.

Donate

Translations:

The translations file has been heavily updated and we are in need of translators! If you have a language to add, reply to this topic or get in touch with one of us.

Plugin Settings (Cvars):

Quote:

// Enable or disable automatic adding of SM_Hosties in sv_tags (visible from the server browser in CS:S): 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_add_servertag "1"

// Enable or disable announcements when a CT attacks a non-rebelling T: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_announce_attack "1"

// Enable or disable chat announcements when Last Requests starts to be available: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_announce_lr "1"

// Enable or disable chat announcements to tell that last request delaying is activated and how long the delay is: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_announce_lr_delay "1"

// Enable or disable chat announcements when a terrorist becomes a rebel: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_announce_rebel "0"

// Enable or disable chat announcements when a rebel is killed: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_announce_rebel_down "0"

// Enable or disable rule announcements in the beginning of every round ('please follow the rules listed in !rules'): 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_announce_rules "1"

// Enable or disable an announcement telling that a non-rebelling T has a weapon when he gets attacked by a CT (also requires sm_hosties_announce_attack 1): 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_announce_wpn_attack "0"

// What sound to play each second a beacon is 'ping'ed.
// -
// Default: "buttons/blip1.wav"
sm_hosties_beacon_sound "buttons/blip1.wav"

// Enable or disable the !checkplayers command: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_checkplayers_enable "1"

// Comma delimitted list of items to give to CTs at spawn
// -
// Default: "weapon_knife,weapon_m4a1,weapon_usp"
sm_hosties_ct_start "weapon_knife,weapon_m4a1,weapon_usp"

// Enable or disable the display of the Powered by SM Hosties message at the start of each round.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_display_advert "1"

// Turns on or off the advanced freekill protection system.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_freekill_adv_prot "1"

// The length of an automated freekill ban (if sm_hosties_freekill_punishment is 2): x - ban length in minutes
// -
// Default: "60"
// Minimum: "0.000000"
sm_hosties_freekill_ban_length "60"

// Whether to notify CTs who kills a non-rebelling T about how many 'freekills' they have, or not: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_freekill_notify "0"

// The punishment to give to a CT who overrides the treshold: 0 - slay, 1 - kick, 2 - ban
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_hosties_freekill_punishment "0"

// When to reset the 'freekill counter' for all CTs: 0 - on round start, 1 - on map end
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_freekill_reset "0"

// What sound to play if a non-rebelling T gets 'freekilled', relative to the sound-folder: -1 - disable, path - path to sound file
// -
// Default: "sm_hosties/freekill1.mp3"
sm_hosties_freekill_sound "sm_hosties/freekill1.mp3"

// When to play the 'freekill sound': 0 - on freeATTACK, 1 - on freeKILL
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_freekill_sound_mode "1"

// The amount of non-rebelling terrorists a CT is allowed to kill before action is taken: 0 - disabled, >0 - amount of Ts
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "64.000000"
sm_hosties_freekill_treshold "0"

// Sets the game description tag.
// -
// Default: "Hosties/Jailbreak v2"
sm_hosties_gamedesc_tag "Hosties/Jailbreak v2"

// Enable or disable Last Requests (the !lr command): 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr "1"

// Automatically display the LR menu to non-rebelers when they become elgible for LR: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_autodisplay "0"

// Beacon players on LR or not: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_beacon "1"

// The interval in seconds of which the beacon 'beeps' on LR
// -
// Default: "1.0"
// Minimum: "0.100000"
sm_hosties_lr_beacon_interval "1.0"

// Displays connecting beams between LR contestants: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_beams "1"

// Controls how close LR partners must be before the connecting beams will disappear: 0 - always on, >0 the distance in game units
// -
// Default: "0.0"
// Minimum: "0.000000"
sm_hosties_lr_beams_distance "0.0"

// Blocks LR participants from commiting suicide to avoid deaths: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_blocksuicide "0"

// What to do with a chicken fighter who attacks the other player with another weapon than knife: 0 - abort LR, 1 - slay player
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_cf_cheat_action "1"

// Enable LR Chicken Fight: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_cf_enable "1"

// What color to turn the loser of a chicken fight into (rgB): x - blue value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_hosties_lr_cf_loser_blue "0"

// What color to turn the loser of a chicken fight into (rGb): x - green value
// -
// Default: "255"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_hosties_lr_cf_loser_green "255"

// What color to turn the loser of a chicken fight into (only if sm_hosties_lr_cf_slay == 0, set R, G and B values to 255 to disable) (Rgb): x - red value
// -
// Default: "255"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_hosties_lr_cf_loser_red "255"

// Slay the loser of a Chicken Fight instantly? 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_cf_slay "1"

// Enables that players can not attack players in LR and players in LR can not attack players outside LR: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_damage "0"

// Enable health-checker in LR Dodgeball to prevent contestant cheating (healing themselves): 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_db_cheatcheck "1"

// Enable LR Dodgeball: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_db_enable "1"

// The amount of time after a thrown flash before a new flash is given to a contestant: float value - delay in seconds
// -
// Default: "1.4"
// Minimum: "0.700000"
// Maximum: "6.000000"
sm_hosties_lr_db_flash_duration "1.4"

// What gravity multiplier the dodgeball contestants will get: <1.0 - less/lower, >1.0 - more/higher
// -
// Default: "0.6"
// Minimum: "0.100000"
// Maximum: "2.000000"
sm_hosties_lr_db_gravity "0.6"

// Delay in seconds before a last request can be started: 0.0 - instantly, >0.0 - (float value) delay in seconds
// -
// Default: "0.0"
// Minimum: "0.000000"
sm_hosties_lr_enable_delay "0.0"

// Enable LR Gun Toss: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_gt_enable "1"

// Deagle marking (requires sm_hosties_lr_gt_mode 1): 0 - markers straight up where the deagles land, 1 - markers starting where the deagle was dropped ending at the deagle landing point
// -
// Default: "0"
sm_hosties_lr_gt_markers "0"

// Displays a distance meter: 0 - do not display, 1 - display
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_gt_meter "1"

// How Gun Toss will be played: 0 - no double-dropping checking, deagle gets 7 ammo at start, 1 - double dropping check, deagle gets 7 ammo on drop, colouring of deagles, deagle markers
// -
// Default: "1"
sm_hosties_lr_gt_mode "1"

// What to do with a hot potato contestant who attacks the other player: 0 - abort LR, 1 - slay player
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_hp_cheat_action "1"

// Enable LR Hot Potato: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_hp_enable "1"

// Maximum time in seconds the Hot Potato contest will last for (time is randomized): float value - time
// -
// Default: "20.0"
// Minimum: "8.000000"
// Maximum: "120.000000"
sm_hosties_lr_hp_maxtime "20.0"

// Minimum time in seconds the Hot Potato contest will last for (time is randomized): float value - time
// -
// Default: "10.0"
// Minimum: "0.000000"
// Maximum: "45.000000"
sm_hosties_lr_hp_mintime "10.0"

// Enable announcement when a Hot Potato contestant picks up the hot potato: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_hp_pickupannounce "0"

// What speed multiplier a hot potato contestant who has the deagle is gonna get: <1.0 - slower, >1.0 - faster
// -
// Default: "1.5"
// Minimum: "0.800000"
// Maximum: "3.000000"
sm_hosties_lr_hp_speed_multipl "1.5"

// Teleport CT to T on hot potato contest start: 0 - disable, 1 - enable, 2 - enable and freeze
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_hosties_lr_hp_teleport "2"

// Enables the LR Jumping Contest: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_jumpcontest_on "1"

// What to do with a knife fighter who attacks the other player with another weapon than knife: 0 - abort LR, 1 - slay player
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_kf_cheat_action "1"

// The multiplier used for how drunk the player will be during the drunken boxing knife fight.
// -
// Default: "4"
// Minimum: "0.000000"
sm_hosties_lr_kf_drunk "4"

// Enable LR Knife Fight: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_kf_enable "1"

// The multiplier used for the low-gravity knife fight.
// -
// Default: "0.6"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_kf_gravity "0.6"

// The multiplier used for the high-speed knife fight.
// -
// Default: "2.2"
// Minimum: "1.100000"
sm_hosties_lr_kf_speed "2.2"

// Kills Ts who timeout the LR menu and controls whether the exit button is displayed: 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_killtimeouts "0"

// The number of bullets in each magazine given to Mag4Mag LR contestants
// -
// Default: "7"
// Minimum: "2.000000"
sm_hosties_lr_m4m_capacity "7"

// Enables the LR Magazine4Magazine: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_mag4mag_on "1"

// Sets the time the LR menu is displayed (in seconds)
// -
// Default: "0"
// Minimum: "0.000000"
sm_hosties_lr_menutime "0"

// Delay in seconds before a No Scope Battle begins (to prepare the contestants...)
// -
// Default: "3"
// Minimum: "0.000000"
sm_hosties_lr_ns_delay "3"

// Enable LR No Scope Battle: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_ns_enable "1"

// Weapon to use in a No Scope Battle: 0 - AWP, 1 - scout, 2 - let the terrorist choose, 3 - SG550, 4 - G3SG1
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "2.000000"
sm_hosties_lr_ns_weapon "2"

// What to do when a LR-player gets killed by a player not in LR during LR: 0 - just abort LR, 1 - abort LR and slay the attacker
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_p_killed_action "1"

// Allow prisoners to set race points in the air.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_race_airpoints "0"

// Enables the LR Race: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_race_on "1"

// Tells all CTs when a T has selected the race option from the LR menu
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_race_tell_cts "1"

// Decides what to do with those who rebel/interfere during an LR. 1 - Abort, 2 - Slay.
// -
// Default: "2"
// Minimum: "1.000000"
// Maximum: "2.000000"
sm_hosties_lr_rebel_action "2"

// If the Rebel LR option is enabled, specifies how minimum number of alive counter-terrorists needed for the option to appear in the LR menu.
// -
// Default: "1"
// Minimum: "1.000000"
sm_hosties_lr_rebel_cts "1"

// Sets terrorists to rebels for firing a bullet. 0 - Disabled, 1 - Enabled.
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_rebel_impact "0"

// LR-mode for rebelling terrorists: 0 - Rebelling Ts can never have a LR, 1 - Rebelling Ts must let the CT decide if a LR is OK, 2 - Rebelling Ts can have a LR just like other Ts
// -
// Default: "1"
// Minimum: "0.000000"
sm_hosties_lr_rebel_mode "1"

// Enables the LR Rebel: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_rebel_on "1"

// If the Rebel LR option is enabled, specifies the maximum number of alive terrorists needed for the option to appear in the LR menu.
// -
// Default: "1"
// Minimum: "1.000000"
sm_hosties_lr_rebel_ts "1"

// Enable LR Rock Paper Scissors: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_rps_enable "1"

// Enables the LR Russian Roulette: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_russianroulette_on "1"

// What to do with someone who fires 2 shots in a row in Shot4Shot: 0 - nothing (ignore completely), 1 - Follow rebel punishment cvars
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_s4s_dblsht_action "1"

// Enable LR Shot4Shot: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_s4s_enable "1"

// Enable announcements in Shot4Shot or Mag4Mag when a contestant empties their gun: 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_s4s_shot_taken "1"

// Specifies if non-death related LR messages are sent to everyone or just the active participants in that LR. 0: participants, 1: everyone
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_lr_send_global_msgs "0"

// What sound to play when LR gets available, relative to the sound-folder (also requires sm_hosties_announce_lr to be 1): -1 - disable, path - path to sound file
// -
// Default: "sm_hosties/lr1.mp3"
sm_hosties_lr_sound "sm_hosties/lr1.mp3"

// The maximum number of terrorists left to enable LR: 0 - LR is always enabled, >0 - maximum number of Ts
// -
// Default: "2"
// Minimum: "0.000000"
// Maximum: "63.000000"
sm_hosties_lr_ts_max "2"

// Amount of frags to reward victor in an LR where other player automatically dies
// -
// Default: "1"
// Minimum: "0.000000"
sm_hosties_lr_victorpoints "1"

// Setting for muting terrorists automatically: 0 - disable, 1 - terrorists are muted the first few seconds of a round, 2 - terrorists are muted when they die, 3 - both
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "3.000000"
sm_hosties_mute "1"

// Setting for muting counter-terrorists automatically when they die (requires sm_hosties_mute 2 or 3): 0 - disable, 1 - enable
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_mute_ct "0"

// Admin flags which are immune from getting muted: 0 - nobody, 1 - all admins, flag values: abcdefghijklmnopqrst
// -
// Default: "z"
sm_hosties_mute_immune "z"

// Enable or disable integrated removing of player vs player collisions (noblock): 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_noblock_enable "1"

// What sound to play when a No Scope Battle starts, relative to the sound-folder: -1 - disable, path - path to sound file
// -
// Default: "sm_hosties/noscopestart1.mp3"
sm_hosties_noscope_sound "sm_hosties/noscopestart1.mp3"

// Enable or disable an override of the game description (standard Counter-Strike: Source, override to Hosties/jailbreak): 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_override_gamedesc "1"

// What color to turn a rebel into (rgB): x - blue value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_hosties_rebel_blue "0"

// Turns on coloring rebels
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_rebel_color "0"

// What color to turn a rebel into (rGb): x - green value
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_hosties_rebel_green "0"

// What color to turn a rebel into (set R, G and B values to 255 to disable) (Rgb): x - red value
// -
// Default: "255"
// Minimum: "0.000000"
// Maximum: "255.000000"
sm_hosties_rebel_red "255"

// Counter-Terrorist overlay texture file
// -
// Default: "overlays/sm_hosties/prisonguards_win.vtf"
sm_hosties_roundend_overlay_ct "overlays/sm_hosties/prisonguards_win.vtf"

// Counter-Terrorist overlay material file
// -
// Default: "overlays/sm_hosties/prisonguards_win.vmt"
sm_hosties_roundend_overlay_ct_vmt "overlays/sm_hosties/prisonguards_win.vmt"

// Terrorist overlay texture file
// -
// Default: "overlays/sm_hosties/prisoners_win.vtf"
sm_hosties_roundend_overlay_t "overlays/sm_hosties/prisoners_win.vtf"

// Terrorist overlay material file
// -
// Default: "overlays/sm_hosties/prisoners_win.vmt"
sm_hosties_roundend_overlay_t_vmt "overlays/sm_hosties/prisoners_win.vmt"

// The length of time the Terrorist team is muted for after the round begins
// -
// Default: "30.0"
// Minimum: "3.000000"
// Maximum: "90.000000"
sm_hosties_roundstart_mute "30.0"

// Enable or disable rules showing up at !rules command (if you need to disable the command registration on plugin startup, add a file in your sourcemod/configs/ named hosties_rulesdisable.ini with any content): 0 - disable, 1 - enable
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_rules_enable "1"

// 1 - Panel Mode, 2 - Website
// -
// Default: "1"
// Minimum: "1.000000"
// Maximum: "2.000000"
sm_hosties_rules_mode "1"

// The website for the rules page.
// -
// Default: "http://www.youtube.com/watch?v=oHg5SJYRHA0"
sm_hosties_rules_website "http://www.youtube.com/watch?v=oHg5SJYRHA0"

// Enable or disable configurable payloads for each time on player spawn
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_startweapons_on "1"

// Enable or disable the stripping of weapons from anyone who is banned.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_strip_onban "1"

// Enable or disable the stripping of weapons from anyone who is kicked.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_strip_onkick "1"

// Enable or disable the stripping of weapons from anyone who is slain.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_hosties_strip_onslay "1"

// Comma delimitted list of items to give to Ts at spawn
// -
// Default: "weapon_knife"
sm_hosties_t_start "weapon_knife"
Settings (cvars) for fruitninja LR:

Spoiler


Links:

Latest changes (source code and changelog) available on GitHub
Download mirror for the ZIP file (release package)

bobbobagan 11-09-2009 19:39

Re: [CSS] SM_Hosties
 
Wow I was waiting for somebody to make a sm hosties... in fact just yesterday me and a mate were considering making it ourselves. Great to see it on here... may start using it, since the latest hosties EST has a memory leak in it.

Can you add all of the other commands in, like !checkplayers to show who is a rebel... I think there was a !checkguns command for seeing if any Ts had guns as well. Also, an option to enable/disable !rules as people may have it managed by something else already.

Also, needs a cvar for enabling/disabling dropping the deagle twice in Guntoss, as sometimes players accidently drop their guns but cant rethrow.

Just found a bug, after a guntoss you can't drop your deagle

dataviruset 11-10-2009 13:37

Re: [CSS] SM_Hosties
 
Okay, version 1.01 released, see changelog for more info.

Thanks for the feedback bobbobagan, in fact, I had the same thoughts a while ago, that's why I made this =)

I'll add those "other commands" to the to do-list, I knew about them, but I thought they were a bit unused and obsolete today, so I ignored them completely :P
But, it's no big deal adding it, and it can be controlled via convars so the plugin fits every server ^^

Just spam me with feedback :wink:

bobbobagan 11-11-2009 00:08

Re: [CSS] SM_Hosties
 
Theres another bug...

a T !lr's a CT and the !lr starts. Another CT kills the T in !lr, but the !lr still continues as if both players are alive.

You need to add some kind of checking to see if the players are in !lr are alive, and if they are killed by another player not in the !lr a message should be displayed or something.

Also, we have sm_hosties_lr_cf_slay = 0 and after somebody wins a chicken fight, the beacons turn off. IMO, the beacons should stay on until one of the players dies.

Also, another suggestion... you should add multilingual support and add events to game logs so we can use HLStatsX :P Events like, winning an LR, killing a rebel, killing a CT... That kind of thing would be cool :P

Yesterday me and a mate had a go at making !checkplayers... we managed to kind of get it working, although its not working correctly. Rather than displaying the rebels name, it shows the servers name... and sometimes the victims name. Not exactly sure what is going on, but feel free to have a look (see attached).

Last thing is you need to add a version cvar (eg: sm_hosties_version), and fill out all the top information in the first post in order for your plugin to be approved...

dataviruset 11-11-2009 19:23

Re: [CSS] SM_Hosties
 
Version 1.02 released, thanks for your continous help, bobbobagan :)

bobbobagan 11-12-2009 03:40

Re: [CSS] SM_Hosties
 
!checkplayers works great, glad you could get it working :D anyway... more bugs for you :P

When a T last requests a CT, then another CT kills the T, the beacons are turned off on both LR players, and starts beaconing the CT that wasn't even participating in the LR.

When no Ts are rebelling, and somebody types !checkplayers, the message saying that there are no rebelling Ts is broadcasted to the whole server, rather than just the person who said !checkplayers.

Also, not sure if it was just a random bug... but at the end of a s4s that I won, I was left with no ammo in my gun as a CT. But we tried again and I *think* it worked fine.

We are doing all this testing on a test server :P We are waiting for you to put in some sort of way to tell who won gun toss before we use this plugin on our real hosties server. Distance meter works best :P

dataviruset 11-15-2009 18:51

Re: [CSS] SM_Hosties
 
After some developing, version 1.03 is released, yaaaaaarr! :gyar:
Many thanks bobbobagan :wink:

SpazShot 11-16-2009 21:17

Re: [CSS] SM_Hosties
 
My server crashes with this plugin :cry: I join and it's okay, but once someone else joins a team (Terrorist or Counter-Terrorist) my server crashes. Help please?

dataviruset 11-17-2009 11:14

Re: [CSS] SM_Hosties
 
Quote:

Originally Posted by SpazShot (Post 991811)
My server crashes with this plugin :cry: I join and it's okay, but once someone else joins a team (Terrorist or Counter-Terrorist) my server crashes. Help please?

Are you sure you have the SDK Hooks-extension and all other files put in their correct places?

DIFF 11-17-2009 13:32

Re: [CSS] SM_Hosties
 
21:29:36 sm plugins load sm_hosties
21:29:37 [SM] Loaded plugin sm_hosties.smx successfully.
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "x"
Unknown command "x"
Unknown command "x"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "0"
Unknown command "x"
Unknown command "x"
Unknown command "x"
Unknown command "0"

oneshot23 11-18-2009 05:30

Re: [CSS] SM_Hosties
 
Hey I have some thoughts you could possibly add... Also GJ I was waiting for someone to make it for SM. If I knew SourcePawn more I would have done it...

Add Deagle Marker and Distance Announcer/Chat
Add Race and Hot Potato
Auto Team Balance - This would make the teams auto 2:3 (Ct:T) ratio or 1:3 (Ct:T) but have a Cvar to set that.
You could also add something where if a CT kills a T that was a rebel they would get x hp or x speed.

But anyways Good Job and More power to you!

SpazShot 11-18-2009 09:57

Re: [CSS] SM_Hosties
 
Quote:

Originally Posted by dataviruset (Post 992089)
Are you sure you have the SDK Hooks-extension and all other files put in their correct places?

I'm pretty sure i did. I put them in the sourcemod folder under addons. I will reinstall sm_hosties and sdk hooks when i get back from school. Sorry for replying late, my server wouldn't reinstall and it was "Stopped" and i couldn't do anything about it. I will get back to you in about 5 or 6 hours :mrgreen:

SpazShot 11-19-2009 02:20

Re: [CSS] SM_Hosties
 
I guess it was the .so for SDK HOOKS that was bad, i downloaded a different one on page 4 or something on SDK HOOKS page. It works now :)

Vojtoun 11-19-2009 12:42

Re: [CSS] SM_Hosties
 
Love to see hosties/jail for SM :twisted: could it be possible for you to add translations support, because our SM is completely translated to our native language (czech) and most of our players are noobs, who don't speak english a bit:)

oneshot23 11-19-2009 17:55

Re: [CSS] SM_Hosties
 
Hey there is an error with guntoss. It will not allow people to drop weapons during it. Sometimes it lets T but CT's it will not allow.

tonyx3 11-19-2009 20:06

Re: [CSS] SM_Hosties
 
Getting massive error when I recompile it with changing to Reply to Client thingy o_O. It shouldnt be since all I change was the chat to players D:

Code:

L 11/19/2009 - 17:04:11: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 11/19/2009 - 17:04:11: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 11/19/2009 - 17:04:11: [SM]  [0]  Line 317, C:\Users\Tony\Desktop\JailBreak Server\SourceMod 1.2.4\addons\sourcemod\scripting\sm_hosties.sp::Event_PlayerHurt()


SpazShot 11-20-2009 18:24

Re: [CSS] SM_Hosties
 
After attacking a CT or a CT attacking a T, the gun is not able to be dropped.

daleGEND 12-08-2009 20:38

Re: [CSS] SM_Hosties
 
Is there a way to limit the amount of CTs?

dataviruset 12-09-2009 17:16

Re: [CSS] SM_Hosties
 
Yeah, apparently there are still some bugs... As you can see, there is no "amount of CTs" cvar at the moment.

daleGEND 12-09-2009 17:51

Re: [CSS] SM_Hosties
 
No matter, someone developed a plugin, but you should check your code, produces a lot of errors and Chicken doesn't work at all.

dataviruset 12-09-2009 18:06

Re: [CSS] SM_Hosties
 
Quote:

Originally Posted by daleGEND (Post 1011666)
Chicken doesn't work at all.

I haven't heard this before. Tell me :o
Someone else experiencing problems with chicken fight?

daleGEND 12-09-2009 18:07

Re: [CSS] SM_Hosties
 
If we choose chicken fight, it drops both our weapons and we just stand there with nothing...so whats the point of it?

dataviruset 12-09-2009 18:11

Re: [CSS] SM_Hosties
 
The point of chicken fight is to get on the other player's head.

daleGEND 12-09-2009 19:36

Re: [CSS] SM_Hosties
 
Odd...but yea your plugin shows a lot of errors in the error log.

daleGEND 12-15-2009 06:31

Re: [CSS] SM_Hosties
 
Some example:

Quote:

L 12/09/2009 - 16:06:51: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 12/09/2009 - 16:06:51: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 12/09/2009 - 16:06:51: [SM] [0] Line 317, sm_hosties.sp::Event_PlayerHurt()
L 12/09/2009 - 16:06:55: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 12/09/2009 - 16:06:55: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 12/09/2009 - 16:06:55: [SM] [0] Line 317, sm_hosties.sp::Event_PlayerHurt()
L 12/09/2009 - 16:07:12: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 12/09/2009 - 16:07:12: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 12/09/2009 - 16:07:12: [SM] [0] Line 317, sm_hosties.sp::Event_PlayerHurt()
L 12/09/2009 - 16:08:29: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 12/09/2009 - 16:08:29: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 12/09/2009 - 16:08:29: [SM] [0] Line 317, sm_hosties.sp::Event_PlayerHurt()
L 12/09/2009 - 16:08:32: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 12/09/2009 - 16:08:32: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 12/09/2009 - 16:08:32: [SM] [0] Line 317, sm_hosties.sp::Event_PlayerHurt()
L 12/09/2009 - 16:08:33: [SM] Native "GetClientTeam" reported: Client index 0 is invalid
L 12/09/2009 - 16:08:33: [SM] Displaying call stack trace for plugin "sm_hosties.smx":
L 12/09/2009 - 16:08:33: [SM] [0] Line 317, sm_hosties.sp::Event_PlayerHurt()
Might want to look into these...

Cleric 12-15-2009 14:51

Re: [CSS] SM_Hosties
 
As I told you before, if you made a Hosties plugin for SM I would declare you as god.

You are GOD! :)

Haven't had the time to test it yet but I will be back with as much feedback humanly possible. Great work and once again thank you Mr. God :)

NouveauJoueur 12-15-2009 15:14

Re: [CSS] SM_Hosties
 
It would be really cool if you could add a few features :

- Limit for non-rebel T killed per map (if the CT kills XX non-rebel T he'll get banned / kicked)
- Limit of non-rebel T killed by X seconds
- A cvar to set the X seconds
- Two or tree cvars to set punishment for all those features (teamswitch with a team restriction of the bad CT, slay, weapon strip, kick, ban, chicken skin runing faster + 500 HP + permanent weapon strip so the T can hunt this free killer down ! :P)

rambomst 12-17-2009 10:48

Re: [CSS] SM_Hosties
 
Its a pretty good hosties addon much better than the ES one already imo there is a few things

1. Disabling the rules menu doesn't work for me.
2. Chat text spam is annoying for some reason all the messages are repeated twice or more.
3. A distance counter for gun toss would be nice.
4. An easy way to change the messages that are displayed when you attack rebels, lr starts etc
5. Easier way to add custom equipment on spam like kevlar and nv etc
6. If someone was a rebel and then they get a respawn they will respawn as a rebel and not a normal player.
7. If a player within LR dies by typing kill in console or falling of something LR doesn't end and then the other play is then stuck with a beacon and on one else can LR.
8. When LR starts and a player gets beaconed it says "[SM] Console: toggled beacon on player." it would be nice to have that hidden.

That is all I can think of atm

*edit*

To add onto number 1 if I remove all the rules from hosties_rules.ini the window will no longer be displayed when !rules is typed.

psychonic 12-26-2009 22:43

Re: [CSS] SM_Hosties
 
@dataviruset

Are you still planning on updating this to fix the reported errors?

rambomst 12-27-2009 02:10

Re: [CSS] SM_Hosties
 
Quote:

Originally Posted by psychonic (Post 1032434)
@dataviruset

Are you still planning on updating this to fix the reported errors?

I would also like to know this =\ If he doesn't I will have to work out how to do some coding myself which would take me forever as I have no clue how to do distances in guntoss etc. I managed to work how to stop LR if a player within LR disconnects from the server but thats it or I will need to find someone I can pay to do it(which I would rather do).

dataviruset 12-27-2009 10:24

Re: [CSS] SM_Hosties
 
I'm working on it, version 1.04 is not far from here =)

rambomst 12-27-2009 11:20

Re: [CSS] SM_Hosties
 
Quote:

Originally Posted by dataviruset (Post 1032776)
I'm working on it, version 1.04 is not far from here =)

Do you have a rough ETA on its release?

dataviruset 12-27-2009 11:22

Re: [CSS] SM_Hosties
 
Right now I'm focusing quite much on the bugs, so 1.04 will be kind of a bug fixing version, probably released in ~2 weeks.

Cleric 12-28-2009 06:05

Re: [CSS] SM_Hosties
 
Looking forward to it. Keep it up :)

lvlikon 12-28-2009 09:10

Re: [CSS] SM_Hosties
 
Hey,

Great work on the SM version of the hostie plugin. I would much rather prefer to use this SM version of the code.

By the way, would it be possible for you to extract the scripting pertaining just to the !LR section of the code? It would make an awesome LR script. Im about to launch a jailbreak server, and I've been busting my ass just to find a simple LR script. Your plugin would do the trick, and im sure many JB owners would benefit from it.

dataviruset 12-29-2009 09:09

Re: [CSS] SM_Hosties
 
I'm absolutely working on this, I can assure you that. You should see me now, like :grrr: or something :mrgreen:

lvlikon, to answer your question a bit rough, I have no plans "extracting" the LR part of the plugin right now...

TheNoob 12-29-2009 09:37

Re: [CSS] SM_Hosties
 
i can't get it work i don't know why, i've everything installed
help plz

dataviruset 12-29-2009 09:42

Re: [CSS] SM_Hosties
 
Quote:

Originally Posted by TheNoob (Post 1035155)
i can't get it work i don't know why, i've everything installed
help plz

Hehe, if you can explain to me a bit more what you have installed I can try helping you ;)
MetaMod:Source installed? SourceMod? SDK Hooks? What exactly did you do when you tried installing SM_Hosties?

TheNoob 12-29-2009 10:53

Re: [CSS] SM_Hosties
 
i downloaded metamod:source and sourcemod and sdkhooks i extracted metamod and source mod to cstrike and sdkhooks to cstrike/addons/sourcemod and this mod i extracted to cstrike

dataviruset 12-29-2009 10:56

Re: [CSS] SM_Hosties
 
Quote:

Originally Posted by TheNoob (Post 1035199)
i downloaded metamod:source and sourcemod and sdkhooks i extracted metamod and source mod to cstrike and sdkhooks to cstrike/addons/sourcemod and this mod i extracted to cstrike

Are you sure MetaMod:Source and SourceMod gets loaded at your server?
For example, what happens when you type "meta version" and "sm plugins list" in your server console? Have you got the correct version of SDK Hooks for your MetaMod:Source and SourceMod install?


All times are GMT -4. The time now is 09:38.

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