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

PageDescription
Script FundamentalsCovers some fundamental aspects of writing scripts for Sven Co-op
StringsCovers the basics of strings in scripts
Debugging ScriptsDebugging scripts.
Entity BasicsCovers the basics of what entities are and how to use them.
Entity IntermediateCovers intermediate topics regarding entities.
Entity FunctionsHow to use the various entity functions.
Sound SystemHow to use the sound system.
Engine FunctionsHow to use engine functions.
SchedulerCovers the use of the scheduler.
Custom KeyvaluesCovers the usage of custom keyvalues in scripts.
CEngineCovers the CEngine class. This class includes the current time and frametime, as well as engine configuration and the global trace.
CGameContains methods integral to the game's operation.
TracelinesCovers tracelines and the TraceResult class, as well as related enumerations.
HooksCovers the purpose and use of hooks.
ConCommandSystemCovers the console command system. This is used to add console commands and variables.
ReflectionThe Reflection API.
Temporary EntitiesCovers the use of temporary entities.
Animation ExtensionsAnimation Extensions used by weapons for player models.

Plugins

PageDescription
PluginsCovers the essentials for plugin creation and usage.
Admin ControlCovers the CAdminControl interface.

Map Scripts

PageDescription
Map ScriptsCovers the essentials for map script creation and usage.
trigger_scriptDescribes the usage for trigger_script.
squadmakerDescribes the usage of the squadmaker entity to call script functions.

Miscellaneous

PageDescription
SayParametersStores data used by the ClientSay hook.
BulletThe Bullet enum contains bullet types used by the game.
CONTENTSWorld contents enum.
PRINT_TYPEPrint types for CEngineFuncs::ClientPrintf.
HUDEnumeration used to direct client print operations to a particular destination.
SATCHELCODEActions to take when enumerating player satchels.
EdictFlagsFlags that can be used with entvars_t::flags.
WALKMOVETypes of movement that can be performed by CEngineFuncs::WalkMove.
CvarCvar object type used to access built-in cvars.
KeyValueBufferBuffer that stores key value pairs.
TE_BOUNCESounds to play when using CEntityFuncs::EjectBrass.
MaterialsMaterial types used by breakables.
Default Ammo TypesDefault Ammo Types used by the game.

Clone this wiki locally