codeAPI Reference

Throwable enum

calendar_today May 12, 2026 schedule ~1 min read person PatrickJr verified 50

Throwable Enum

Types of throwable weapons for s&box viewmodel animation selection.

Values

  • HEGrenade - High-explosive grenade
  • SmokeGrenade - Smoke grenade
  • StunGrenade - Stun grenade
  • Molotov - Molotov cocktail
  • Flashbang - Flashbang grenade

Usage

Used in ViewModel to set the throwable type, which controls which animation is played when throwing.

CSHARP
[Property, Feature( "Throwables" )]
public Throwable ThrowableType { get; set; }

The enum value is passed to the SkinnedModelRenderer as an integer parameter:

CSHARP
Renderer?.Set( "throwable_type", (int)ThrowableType );

Location

File: d:\GitHubStuff\sandbox\code\Game\Weapon\WeaponModel\ViewModel.Throwables.cs

Was this helpful?