You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/6.plugins/5.s2sdk/4.guides/7.cs_script-integration.md
+30-30Lines changed: 30 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,40 +1,40 @@
1
1
---
2
-
title: Pulse System Integration
3
-
description: How to integrate Valve's Pulse (cs_script) system with Plugify plugins.
2
+
title: CS_Script System Integration
3
+
description: How to integrate Valve's CS_Script system with Plugify plugins.
4
4
---
5
5
6
6
## Overview
7
7
8
-
Counter-Strike 2 includes **Pulse** (also known as `cs_script`), a JavaScript-based scripting system that provides access to game entities, events, and functionality. The s2sdk plugin enables Plugify language modules to integrate with Pulse by exposing Valve's module resolver, allowing you to use both Plugify plugins and Valve's Pulse system together.
8
+
Counter-Strike 2 includes **CS_Script** (a JavaScript-based scripting system that provides access to game entities, events, and functionality. The s2sdk plugin enables Plugify language modules to integrate with CS_Script by exposing Valve's module resolver, allowing you to use both Plugify plugins and Valve's CS_Script system together.
9
9
10
-
For more information about Valve's Pulse system, see:
10
+
For more information about Valve's CS_Script system, see:
@@ -223,19 +223,19 @@ export class HybridPlugin extends Plugin {
223
223
224
224
-**The Plugify V8 module** provides Node.js-like features beyond basic JavaScript. See the [official V8 module documentation](https://github.com/untrustedmodders/plugify-module-v8) for details.
225
225
226
-
-**Always use dynamic imports** for Pulse modules - static imports at the top of the file will fail.
226
+
-**Always use dynamic imports** for CS_Script modules - static imports at the top of the file will fail.
227
227
228
-
-**Add a small timeout** (e.g., 100ms) after detecting `point_script` to ensure Pulse is fully initialized.
228
+
-**Add a small timeout** (e.g., 100ms) after detecting `point_script` to ensure CS_Script is fully initialized.
229
229
230
230
-**Handle import errors** gracefully using `.catch()` on your import promises.
231
231
232
-
-**Only JavaScript plugins** can fully integrate with Pulse, but other languages can detect when it becomes available.
232
+
-**Only JavaScript plugins** can fully integrate with CS_Script, but other languages can detect when it becomes available.
233
233
234
234
-**The `point_script` entity** is automatically created by s2sdk once the game rules object exists.
235
235
236
236
## Common Patterns
237
237
238
-
### Waiting for Pulse Before Executing Code
238
+
### Waiting for CS_Script Before Executing Code
239
239
240
240
```js
241
241
exportclassMyPluginextendsPlugin {
@@ -250,14 +250,14 @@ export class MyPlugin extends Plugin {
0 commit comments