Difference between revisions of "List of Jabroni Brawl: Episode 3 Script Functions"

From Valve Developer Community
Jump to: navigation, search
(Created page with "{{lang|List of Jabroni Brawl: Episode 3 Script Functions}} {{toc-right}} {{sq}} Jabroni Brawl: Episode 3's implementation of VScript is built on {{game link|Counter-Stri...")
 
m
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
{{toc-right}}
 
{{toc-right}}
  
{{sq}} Jabroni Brawl: Episode 3's implementation of [[VScript]] is built on {{game link|Counter-Strike: Global Offensive}}'s. This list only contains classes, functions and variables that differ from CSGO's implementation.
+
{{sq}} {{game link|Jabroni Brawl: Episode 3}}'s implementation of [[VScript]] is built on {{game link|Counter-Strike: Global Offensive}}'s. This list only contains classes, functions and variables that differ from CSGO's implementation.
 +
 
 +
== Classes ==
 +
 
 +
=== CBaseEntity ===
 +
 
 +
==== Methods ====
 +
{| class="standard-table" style="width: 85%;"
 +
! Function
 +
! Signature
 +
! Description
 +
|-
 +
| <code>SetName</code>
 +
| <code>void SetName(string ''name'')</code>
 +
| Sets the target name of the entity.
 +
|-
 +
| <code>SetParent</code>
 +
| <code>void SetParent(handle ''parent'')</code>
 +
| Sets the parent of an entity.
 +
|-
 +
| <code>SetParentAttachment</code>
 +
| <code>void SetParentAttachment(handle ''parent'', int ''index'')</code>
 +
| Sets the parent of an entity, as well as the attachment point (by index).
 +
|-
 +
| <code>Bonemerge</code>
 +
| <code>void Bonemerge(handle ''target'')</code>
 +
| Starts following an entity via bonemerge.
 +
|-
 +
|}
 +
 
 +
=== CEntities ===
 +
 
 +
==== Methods ====
 +
{| class="standard-table" style="width: 100%;"
 +
! Function
 +
! Signature
 +
! Description
 +
|-
 +
| <code>CreateNoSpawn</code>
 +
| <code>handle CreateNoSpawn(string ''classname'')</code>
 +
| Creates an entity by classname without spawning it.
 +
|-
 +
|}
 +
 
 +
=== CPlayerVoiceListener ===
 +
 
 +
In JBEP3, the <code>PlayerVoiceListener</code> instance has been implemented.
 +
 
 +
== Global functions ==
 +
 
 +
=== Other ===
 +
 
 +
{| class="standard-table" style="width: 100%;"
 +
! Function
 +
! Signature
 +
! Description
 +
|-
 +
| <code>GetPlayerByUserID</code>
 +
| <code>handle GetPlayerByUserID(int ''userid'')</code>
 +
| Gets a handle to a player from their userID.
 +
|-
 +
| <code>DispatchSpawn</code>
 +
| <code>void DispatchSpawn(handle ''entity'')</code>
 +
| Spawns an entity that has been created but not spawned yet.
 +
|-
 +
|}
 +
 
 +
=== Removed functions ===
 +
 
 +
{| class="standard-table" style="width: 100%;"
 +
! Function
 +
! Signature
 +
! Description
 +
|-
 +
| <code>CreateProp</code>
 +
| <code>handle CreateProp(string ''classname'', Vector ''origin'', string ''model'', int ''animation'')</code>
 +
| Create a prop with the specified class and model. Both [[prop_physics]], [[prop_dynamic]] as well as some other entity classes with models work. Does not precache the model.
 +
|-
 +
|}
 +
 
 +
== See also ==
 +
*[[VScript]]
 +
*[[VScript Fundamentals]]
 +
*{{sq}} [[Squirrel]]
 +
*[[Listening to game events in CS:GO|Listening to game events]]
 +
*{{csgo}} [[CSGO Vscript Examples|VScript Examples]]
 +
*{{csgo}} [[List of Counter-Strike: Global Offensive Script Functions]]
 +
*{{l4d2}} [[List of L4D2 Script Functions]]
 +
*{{portal2}} [[List of Portal 2 Script Functions]]
 +
 
 +
[[Category:Jabroni Brawl: Episode 3]]
 +
[[Category:Scripting]]

Latest revision as of 16:19, 22 July 2021

English

Squirrel Language <Jabroni Brawl: Episode 3> Jabroni Brawl: Episode 3's implementation of VScript is built on Counter-Strike: Global Offensive Counter-Strike: Global Offensive's. This list only contains classes, functions and variables that differ from CSGO's implementation.

Classes

CBaseEntity

Methods

Function Signature Description
SetName void SetName(string name) Sets the target name of the entity.
SetParent void SetParent(handle parent) Sets the parent of an entity.
SetParentAttachment void SetParentAttachment(handle parent, int index) Sets the parent of an entity, as well as the attachment point (by index).
Bonemerge void Bonemerge(handle target) Starts following an entity via bonemerge.

CEntities

Methods

Function Signature Description
CreateNoSpawn handle CreateNoSpawn(string classname) Creates an entity by classname without spawning it.

CPlayerVoiceListener

In JBEP3, the PlayerVoiceListener instance has been implemented.

Global functions

Other

Function Signature Description
GetPlayerByUserID handle GetPlayerByUserID(int userid) Gets a handle to a player from their userID.
DispatchSpawn void DispatchSpawn(handle entity) Spawns an entity that has been created but not spawned yet.

Removed functions

Function Signature Description
CreateProp handle CreateProp(string classname, Vector origin, string model, int animation) Create a prop with the specified class and model. Both prop_physics, prop_dynamic as well as some other entity classes with models work. Does not precache the model.

See also