All Projects → VoiDeD → sourcemod-transitional-helpers

VoiDeD / sourcemod-transitional-helpers

Licence: GPL-3.0 license
A set of helper include files for cleverly (or abusively) working with the SM transitional API.

Programming Languages

C++
36643 projects - #6 most used programming language
SourcePawn
201 projects
PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to sourcemod-transitional-helpers

HexTags
Customize tags & chat colors!
Stars: ✭ 53 (+103.85%)
Mutual labels:  sourcemod, sourcemod-plugins
TF2-Item-Plugins
Manage your cosmetic and weapons freely! Set Unusual Effects, Australiums, Festives, War Paints (w/ Wear), Spells and Paints at will!
Stars: ✭ 22 (-15.38%)
Mutual labels:  sourcemod, sourcemod-plugins
Csgo Pug Setup
CS:GO Sourcemod plugin for setting up private pug/10man games
Stars: ✭ 330 (+1169.23%)
Mutual labels:  sourcemod
Weapons
CS:GO Custom Weapon Options (Skins, NameTag, StatTrak, Wear/Float, Knives)
Stars: ✭ 183 (+603.85%)
Mutual labels:  sourcemod
Basicpawn
BasicPawn - SourcePawn Editor
Stars: ✭ 60 (+130.77%)
Mutual labels:  sourcemod
Sourcemod
SourceMod - Source Engine Scripting and Administration
Stars: ✭ 615 (+2265.38%)
Mutual labels:  sourcemod
Sm Ripext
SourceMod REST in Pawn Extension
Stars: ✭ 69 (+165.38%)
Mutual labels:  sourcemod
Csgo Practice Mode
CS:GO Sourcemod plugin for private team/individual practice servers
Stars: ✭ 263 (+911.54%)
Mutual labels:  sourcemod
Bhoptimer
A bunnyhop timer plugin for Counter-Strike: Source, Counter-Strike: Global Offensive and Team Fortress 2.
Stars: ✭ 151 (+480.77%)
Mutual labels:  sourcemod
Retakes Autoplant
Automatically plant the bomb at the start of the round. This will work with all versions of the Retakes plugin.
Stars: ✭ 55 (+111.54%)
Mutual labels:  sourcemod
Levels Ranks Core
Statistics plugin for servers on the Source Engine
Stars: ✭ 51 (+96.15%)
Mutual labels:  sourcemod
Sm Advertisements
Advertisements for SourceMod
Stars: ✭ 24 (-7.69%)
Mutual labels:  sourcemod
Steamworks
Exposing SteamWorks functions to SourcePawn.
Stars: ✭ 70 (+169.23%)
Mutual labels:  sourcemod
Get5
CS:GO Sourcemod plugin for competitive matches/scrims
Stars: ✭ 390 (+1400%)
Mutual labels:  sourcemod
Sourcebans Pp
Admin, ban, and comms management system for the Source engine
Stars: ✭ 210 (+707.69%)
Mutual labels:  sourcemod
Csgo Retakes
CS:GO Sourcemod plugin for a site-retake gamemode
Stars: ✭ 272 (+946.15%)
Mutual labels:  sourcemod
Store
CSGO sourcemod store plugin.
Stars: ✭ 67 (+157.69%)
Mutual labels:  sourcemod
Ff2 Official
Freak Fortress 2 is a one versus all mod for Team Fortress 2. It is the successor to the Vs. Saxton Hale plugin.
Stars: ✭ 50 (+92.31%)
Mutual labels:  sourcemod
Csgo Multi 1v1
CS:GO Sourcemod plugin to create multi-1v1 arena servers
Stars: ✭ 230 (+784.62%)
Mutual labels:  sourcemod
Little Anti Cheat
Anti-Cheat for Source Games
Stars: ✭ 77 (+196.15%)
Mutual labels:  sourcemod

SM Transitional API Helpers

A set of helper include files for cleverly (or abusively) working with the SM transitional API.

These helpers define a hierarchical structure of methodmaps that attempt to emulate the class hierarchy of Source engine entities. Modders should feel right at home by seeing familiar class names such as CBaseCombatWeapon, CBasePlayer, etc.

Usage

Include thelpers:

#define GAME_TF2 // required to pull in tf2 related helpers
#include <thelpers/thelpers>

Go wild:

public void OnClientPutInServer( int client )
{
  CBasePlayer player = new CBasePlayer( client );
  
  char steamId[ 128 ];
  player.GetSteamID( AuthId_Steam2, steamId, sizeof( steamId ) );
  
  PrintToServer( "%N's steam id: %s", player.Index, steamId );
  
  // do some tf2 specific stuff
  CTFPlayer tfPlayer = view_as<CTFPlayer>( player ); // "downcast" to a CTFPlayer object
  tfPlayer.SetClass( TFClassType_Medic );
  
  // we didn't like them anyway
  ServerCommand( "sm_kick #%d", player.UserID );
}

Documentation

The include files themselves are highly documented with doxygen-like comments. Simply browse around the tree.

Supported Games

The API aims to be game-agnostic where possible to support all possible games. However, it is possible to enable game specific features by #defining GAME_X before including the thelpers files.

Currently only TF2 and some CS:S specific additions have been implemented (enabled with the GAME_TF2 and GAME_CSS defines respectively), but pull requests for other games are welcome!

If your game uses econ entities, you can enable econ functionality with #define GAME_ECON.

Considerations

  • This library will be changing rapidly and often. Expect breaking changes.
  • SM's transitional syntax is experimental and thus has the potential to break us. Expect more breaking changes.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].