EventScripts

EventScripts

EventScripts is a free game scripting plugin for Valve Corporation's Source engine. Aimed at first-time scripters, EventScripts has grown to be one of the most popular Source scripting engines, running on over 10,000 dedicated game servers worldwide as of January 2008. [http://www.game-monitor.com/search.php?search=eventscripts_ver&type=variable]

Overview

EventScripts is a plugin for Valve's Source engine that allow custom scripts to execute on the server. The engine is heavily event-driven, as the name implies, allowing a scripter or game server administrator to take action whenever an event occurs in the game. It also allows scripts to register server console commands themselves [http://www.eventscripts.com/pages/Es_regcmd] and interact heavily with the Source engine to create effects [http://www.eventscripts.com/pages/Es_effect] and interact with players/entities.

Over time the goals of the project have evolved into maintain backwards compatibility, providing a simple interface for non-experts, and delivering active support and help via forums. In this way, EventScripts continues to be an important factor in the Source gaming community, particularly for Counter-Strike Source.

The scripting engine of EventScripts supports two different scripting styles.

EventScripts Classic

EventScripts Classic is not unlike a command-line shell (like bash) built on top of the Source engine's console. It was designed to be simple to use for administrators since experienced coders have access to creating Source plugins [http://www.valve-erc.com/srcsdk/Code/ServerPlugins.html via Valve's Source SDK] in C++.

EventScripts Python

As of EventScripts 2.0, the plugin includes full Python scripting support as an alternative language to EventScripts Classic. The focus again is on providing libraries and wrappers that make it easy to script against, while still providing access to all the power of the existing Python language and standard library.

How it works

At its core, EventScripts is just a Valve Source Plugin which passes information it receives from the Source engine to loaded scripts. When an administrator loads a script (typically through a configuration file via "es_load

18+
© Academic, 2000-2024
Dictionaries export, created on PHP,
Joomla,
Drupal,
WordPress, MODx.

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”