Skip to content

API Documentation

KernCore edited this page Oct 31, 2022 · 9 revisions

API documentation is available here.

Documentation

Sven Co-op Game Scripting

Page Description
Script Fundamentals Covers some fundamental aspects of writing scripts for Sven Co-op
Strings Covers the basics of strings in scripts
Debugging Scripts Debugging scripts.
Entity Basics Covers the basics of what entities are and how to use them.
Entity Intermediate Covers intermediate topics regarding entities.
Entity Functions How to use the various entity functions.
Sound System How to use the sound system.
Engine Functions How to use engine functions.
Scheduler Covers the use of the scheduler.
Custom Keyvalues Covers the usage of custom keyvalues in scripts.
CEngine Covers the CEngine class. This class includes the current time and frametime, as well as engine configuration and the global trace.
CGame Contains methods integral to the game's operation.
Tracelines Covers tracelines and the TraceResult class, as well as related enumerations.
Hooks Covers the purpose and use of hooks.
ConCommandSystem Covers the console command system. This is used to add console commands and variables.
Reflection The Reflection API.
Temporary Entities Covers the use of temporary entities.
Animation Extensions Animation Extensions used by weapons for player models.

Plugins

Page Description
Plugins Covers the essentials for plugin creation and usage.
Admin Control Covers the CAdminControl interface.

Map Scripts

Page Description
Map Scripts Covers the essentials for map script creation and usage.
trigger_script Describes the usage for trigger_script.
squadmaker Describes the usage of the squadmaker entity to call script functions.

Miscellaneous

Page Description
SayParameters Stores data used by the ClientSay hook.
Bullet The Bullet enum contains bullet types used by the game.
CONTENTS World contents enum.
PRINT_TYPE Print types for CEngineFuncs::ClientPrintf.
HUD Enumeration used to direct client print operations to a particular destination.
SATCHELCODE Actions to take when enumerating player satchels.
EdictFlags Flags that can be used with entvars_t::flags.
WALKMOVE Types of movement that can be performed by CEngineFuncs::WalkMove.
Cvar Cvar object type used to access built-in cvars.
KeyValueBuffer Buffer that stores key value pairs.
TE_BOUNCE Sounds to play when using CEntityFuncs::EjectBrass.
Materials Material types used by breakables.
Default Ammo Types Default Ammo Types used by the game.
Clone this wiki locally