-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #213 from ampreeT/xen-portal-push-fix
Fix `env_xen_portal_effect` not pushing players
- Loading branch information
Showing
5 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
scripting/include/srccoop_api/classdef/bms/CEnv_XenPortalEffect.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma newdecls required | ||
#pragma semicolon 1 | ||
|
||
// TODO: Find what class this really inherits from. | ||
methodmap CEnv_XenPortalEffect < CBaseEntity | ||
{ | ||
public CEnv_XenPortalEffect(const int iEntIndex = -1) | ||
{ | ||
return view_as<CEnv_XenPortalEffect>(CBaseEntity(iEntIndex)); | ||
} | ||
public static CEnv_XenPortalEffect Create() | ||
{ | ||
return CEnv_XenPortalEffect(CreateEntityByName("env_xen_portal_effect")); | ||
} | ||
|
||
public float GetSize() | ||
{ | ||
return GetEntPropFloat(this.entindex, Prop_Data, "m_flSize"); | ||
} | ||
public void SetSize(const float flSize) | ||
{ | ||
SetEntPropFloat(this.entindex, Prop_Data, "m_flSize", flSize); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters