View Single Post
xfaktor20
New Member
Join Date: Dec 2020
Old 12-07-2020 , 16:27   Re: [CS:S/CS:GO] SM_Hosties (v2.2.0, 2015-08-15)
Reply With Quote #2852

Quote:
Originally Posted by dataviruset View Post
[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):

Settings (cvars) for fruitninja LR:



Links:

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


there are a million errors in the logs, the roulette does not work, when a player shoots a player, he is killed with the reason "Such and such a player tried to cheat during roulette", the melody of death does not work yet, always patronizes the first time

L 12/08/2020 - 00:04:04: [SM] Call stack trace:
L 12/08/2020 - 00:04:04: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:04:04: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:04:04: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 277/env_beam)
L 12/08/2020 - 00:04:04: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:04:04: [SM] Call stack trace:
L 12/08/2020 - 00:04:04: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:04:04: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:04:04: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 290/env_beam)
L 12/08/2020 - 00:04:04: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:04:04: [SM] Call stack trace:
L 12/08/2020 - 00:04:04: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:04:04: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:04:04: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 291/env_beam)
L 12/08/2020 - 00:04:04: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:04:04: [SM] Call stack trace:
L 12/08/2020 - 00:04:04: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:04:04: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:04:04: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 986/instanced_scripted_scene)
L 12/08/2020 - 00:04:04: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:04:04: [SM] Call stack trace:
L 12/08/2020 - 00:04:04: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:04:04: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:04:04: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 987/instanced_scripted_scene)
L 12/08/2020 - 00:04:04: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:04:04: [SM] Call stack trace:
L 12/08/2020 - 00:04:04: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:04:04: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:06:41: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 152/func_dustmotes)
L 12/08/2020 - 00:06:41: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:06:41: [SM] Call stack trace:
L 12/08/2020 - 00:06:41: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:06:41: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:06:41: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 153/func_dustmotes)
L 12/08/2020 - 00:06:41: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:06:41: [SM] Call stack trace:
L 12/08/2020 - 00:06:41: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:06:41: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:06:41: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 442/water_lod_control)
L 12/08/2020 - 00:06:41: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:06:41: [SM] Call stack trace:
L 12/08/2020 - 00:06:41: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:06:41: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:06:41: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 577/func_dustmotes)
L 12/08/2020 - 00:06:41: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:06:41: [SM] Call stack trace:
L 12/08/2020 - 00:06:41: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:06:41: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:06:41: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 819/func_dustmotes)
L 12/08/2020 - 00:06:41: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:06:41: [SM] Call stack trace:
L 12/08/2020 - 00:06:41: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:06:41: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:06:41: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 833/func_dustmotes)
L 12/08/2020 - 00:06:41: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:06:41: [SM] Call stack trace:
L 12/08/2020 - 00:06:41: [SM] [0] GetEntPropEnt
L 12/08/2020 - 00:06:41: [SM] [1] Line 5630, hosties/lastrequest.sp::OnEntitySpawned
L 12/08/2020 - 00:06:41: [SM] Exception reported: Property "m_hOwnerEntity" not found (entity 273/env_beam)
L 12/08/2020 - 00:06:41: [SM] Blaming: sm_hosties_e.smx
L 12/08/2020 - 00:06:41: [SM] Call stack trace:
xfaktor20 is offline