Global

Members

(readonly) Condition :number

Source:
Properties:
Name Type Description
Slowed number
Zoomed number
Disguising number
Disguised number
Cloaked number
Ubercharged number
TeleportGlow number
Taunting number
UberchargeFading number
CloakFlicker number
Teleporting number
Kritzkrieged number
DeadRingered number
Bonked number
Dazed number
BuffBanner number
DemoknightCharging number
EyelanderEyeGlow number
CritACola number
InHealRadius number
Healing number
OnFire number
Overhealed number
Jarated number
Bleeding number
BattalionsBackup number
MadMilk number
QuickFix number
Concheror number
MarkedForDeath number
NoHealingDamageBuff number
DisciplinaryActionSpeed number
HalloweenCritPumpkin number
CritCanteen number
CritDemoCharge number
SodaPopperHype number
ArenaFirstBlood number
CritOnWin number
CritOnFlagCapture number
CritOnKill number
RestrictToMelee number
DefenseBuffNoCritBlock number
PhlogistinatorCritMmmph number
PhlogistinatorDefenseMmmph number
HitmansHeatmakerFocus number
EnforcerDisguiseRemoved number
MarkedForDeathSilent number
DisguisedAsDispenser number
UberchargeCanteen number
HalloweenBombHead number
HalloweenForcedThrillerTaunt number
RadiusHealing number
CritOnDamage number
UberOnDamage number
VaccinatorUberBullet number
VaccinatorUberBlast number
VaccinatorUberFire number
VaccinatorHealBullet number
VaccinatorHealBlast number
VaccinatorHealFire number
BulletImmunity number
BlastImmunity number
FireImmunity number
Buddha number
HalloweenSpeedboost number
HalloweenQuickheal number
Giant number
Tiny number
HalloweenInHell number
HalloweenGhost number
MiniCritOnKill number
BASEJumperParachute number
BlastJumping number
HalloweenKart number
HalloweenKartDash number
BalloonHead number
MeleeOnly number
SwimmingCurse number
HalloweenKartNoTurn number
HalloweenKartCage number
Powerup number
Powerup_Strength number
Powerup_Haste number
Powerup_Regeneration number
Powerup_Resistance number
Powerup_Vampire number
Powerup_Reflect number
Powerup_Precision number
Powerup_Agility number
GrapplingHook number
GrapplingHookSafeFall number
GrapplingHookLatched number
GrapplingHookBleeding number
DeadRingerAfterburnImmunity number
Powerup_Knockout number
Powerup_Imbalance number
Powerup_Crit number
PasstimeInterception number
EscapedUnderworld number
Powerup_King number
Powerup_Plague number
Powerup_Supernova number
Powerup_Plague_Effect number
Powerup_King_Effect number
SpawnOutline number
Airblasted number
CompetitiveWinner number
CompetitiveLoser number
HealingDebuff number
PasstimePenaltyDebuff number
GrappledToPlayer number
BASEJumperParachuteDeployed number
GasPasser number
DragonsFuryAfterburn number
ThermalThrusterLaunched number
LostFooting number
ReducedAirControl number
HalloweenHellHeal number
Powerup_Dominant number

Enum describing conditions that can be applied to a player. Team Fortress 2 only! SourceMod API Reference

Keep in mind that applying some of these won't do anything. Checking for them or removing them from a player would be more useful.

Type:
  • number

(readonly) DisconnectReasons :string

Source:
Properties:
Name Type Description
Disconnect string
Unauthorized string
TimedOut string
UnknownError string

An enum describing the reasons for being disconnected from a SourceMod.JS server.

Type:
  • string

(readonly) EngineVersion :number

Source:
Properties:
Name Type Description
NoEngine number
Unknown number
Original number
SourceSDK2006 number
SourceSDK2007 number
Left4Dead number
DarkMessiah number
Left4Dead2 number
AlienSwarm number
BloodyGoodTime number
EYE number
Portal2 number
CSGO number
CSSOURCE number
DOTA number
HL2DM number
DODS number
TF2 number
NuclearDawn number
SDK2013 number
Blade number
Insurgency number
Contagion number
BlackMesa number
DOI number

Enum describing the version of the Source engine that SourceMod is running. SourceMod API Reference

Type:
  • number

(readonly) Events :string

Source:
Properties:
Name Type Description
PlayerChat string
PlayerUpdate string
PlayerConnect string
PlayerDisconnect string
Disconnect string
Ping string
ServerUpdate string
ConVarChanged string
Error string

An enum describing the events that can be received from a SourceMod.JS server.

Type:
  • string

(readonly) Game :string

Source:
Properties:
Name Type Description
None string
Unknown string
TeamFortress2 string

An enum describing the supported game that Sourcemod.JS is running on.

Type:
  • string

(readonly) Messages :string

Source:
Properties:
Name Type Description
PrintToServer string
ServerCommand string
FetchPlayer string
FetchPlayers string
KickPlayer string
PlayerChat string
PlayerChatAll string
Pong string
FetchServer string
PlayerHint string
PlayerHintAll string
PlayerCenterHint string
PlayerCenterHintAll string
PlaySound string
PlaySoundAll string
SetMap string
SetNextMap string
TeleportPlayer string
SlapPlayer string
SetPlayerRendering string
TF2_RegeneratePlayer string
TF2_GiveWeapon string
TF2_ApplyCondition string

An enum describing the messages that can be sent to a SourceMod.JS server.

Type:
  • string

(readonly) RenderEffect :number

Source:
Properties:
Name Type Description
NONE number
PULSE_SLOW number
PULSE_FAST number
PULSE_SLOW_WIDE number
PULSE_FAST_WIDE number
FADE_SLOW number
FADE_FAST number
SOLID_SLOW number
SOLID_FAST number
STROBE_SLOW number
STROBE_FAST number
STROBE_FASTER number
FLICKER_SLOW number
FLICKER_FAST number
NO_DISSIPATION number
DISTORT number
HOLOGRAM number
EXPLODE number
GLOWSHELL number
CLAMP_MIN_SCALE number
ENV_RAIN number
ENV_SNOW number
SPOTLIGHT number
RAGDOLL number
PULSE_FAST_WIDER number
MAX number

Enum describing the type of render effect to apply. SourceMod API Reference

Type:
  • number

(readonly) RenderMode :number

Source:
Properties:
Name Type Description
NORMAL number
TRANSCOLOR number
TRANSTEXTURE number
GLOW number
TRANSALPHA number
TRANSADD number
ENVIRONMENTAL number
TRANSADDFRAMEBLEND number
TRANSALPHAADD number
WORLDGLOW number
NONE number

Enum describing the render mode to apply. SourceMod API Reference

Type:
  • number

(readonly) TF2Weapons :class

Source:
Properties:
Name Type Description
Scattergun class
ForceANature class
Shortstop class
SodaPopper class
BabyFacesBlaster class
BackScatter class
BonkAtomicPunch class
CritACola class
MadMilk class
Winger class
PrettyBoysPocketPistol class
FlyingGuillotine class
MutatedMilk class
Bat class
Sandman class
HolyMackerel class
CandyCane class
BostonBasher class
SunOnAStick class
FanOWar class
Atomizer class
ThreeRuneBlade class
UnarmedCombat class
WrapAssassin class
Batsaber class
RocketLauncher class
DirectHit class
BlackBox class
RocketJumper class
LibertyLauncher class
CowMangler5000 class
Original class
BeggarsBazooka class
AirStrike class
BuffBanner class
Gunboats class
BattalionsBackup class
Concheror class
RighteousBison class
Mantreads class
Shovel class
Equalizer class
MarketGardener class
DisciplinaryAction class
EscapePlan class
FlameThrower class
Backburner class
Degreaser class
Phlogistinator class
Rainblower class
DragonsFury class
NostromoNapalmer class
FlareGun class
Detonator class
Manmelter class
ScorchShot class
ThermalThruster class
GasPasser class
FireAxe class
Axtinguisher class
Homewrecker class
Powerjack class
BackScratcher class
SharpenedVolcanoFragment class
PostalPummeler class
Maul class
ThirdDegree class
Lollichop class
NeonAnnihilator class
HotHand class
GrenadeLauncher class
LochNLoad class
AliBabasWeeBooties class
Bootlegger class
LooseCannon class
IronBomber class
StickybombLauncher class
ScottishResistance class
CharginTarge class
StickyJumper class
SplendidScreen class
TideTurner class
QuickieBombLauncher class
Bottle class
Eyelander class
ScotsmansSkullcutter class
HorselessHeadlessHorsemannsHeadtaker class
UllapoolCaber class
ClaidheamhMor class
PersianPersuader class
NessiesNineIron class
ScottishHandshake class
Minigun class
Natascha class
IronCurtain class
BrassBeast class
Tomislav class
HuoLongHeater class
Sandvich class
DalokohsBar class
BuffaloSteakSandvich class
FamilyBusiness class
Fishcake class
RoboSandvich class
SecondBanana class
Fists class
KillingGlovesOfBoxing class
GlovesOfRunningUrgently class
WarriorsSpirit class
FistsOfSteel class
EvictionNotice class
ApocoFists class
HolidayPunch class
BreadBite class
ShotgunEngineer class
FrontierJustice class
Widowmaker class
Pomson6000 class
RescueRanger class
Wrangler class
ShortCircuit class
GigarCounter class
Wrench class
Gunslinger class
SouthernHospitality class
GoldenWrench class
Jag class
EurekaEffect class
ConstructionPDA class
DestructionPDA class
Toolbox class
SyringeGun class
Blutsauger class
CrusadersCrossbow class
Overdose class
MediGun class
KritzKrieg class
QuickFix class
Vaccinator class
Bonesaw class
Ubersaw class
VitaSaw class
Amputator class
SolemnVow class
SniperRifle class
Huntsman class
SydneySleeper class
BazaarBargain class
Machina class
HitmansHeatmaker class
AWPerHand class
FortifiedCompound class
Classic class
SMG class
Razorback class
Jarate class
DarwinsDangerShield class
CozyCamper class
CleanersCarbine class
SelfAwareBeautyMark class
Kukri class
TribalmansShiv class
Bushwacka class
Shahanshah class
Revolver class
Ambassador class
BigKill class
LEtranger class
Enforcer class
Diamondback class
Sapper class
RedTapeRecorder class
ApSap class
SnackAttack class
Knife class
YourEternalReward class
ConniversKunai class
BigEarner class
WangaPrick class
SharpDresser class
Spycicle class
BlackRose class
DisguiseKit class
InvisWatch class
DeadRinger class
CloakAndDagger class
EnthusiastsTimepiece class
Quackenbirdt class
Pistol class
VintageLugermorph class
Lugermorph class
CAPPER class
Shotgun class
ReserveShooter class
BASEJumper class
PainTrain class
HalfZatoichi class
FryingPan class
Saxxy class
ConscientiousObjector class
FreedomStaff class
BatOuttaHell class
MemoryMaker class
HamShank class
GoldFryingPan class
NecroSmasher class
CrossingGuard class
PrinnyMachete class

Object with every normal weapon/reskin in Team Fortress 2.

Type:
  • class
Example
player.giveWeapon(new TF2Weapons.Scattergun())