2020-05-31 15:39:17 +10:00
|
|
|
|
static char g_Script_vscript_client[] = R"vscript(
|
2020-05-04 16:25:15 +10:00
|
|
|
|
//========== Copyright <20> 2008, Valve Corporation, All rights reserved. ========
|
|
|
|
|
//
|
|
|
|
|
// Purpose:
|
|
|
|
|
//
|
|
|
|
|
//=============================================================================
|
|
|
|
|
|
2021-03-06 01:11:43 +02:00
|
|
|
|
local DoUniqueString = DoUniqueString
|
|
|
|
|
local DoDispatchParticleEffect = DoDispatchParticleEffect
|
|
|
|
|
|
2020-05-04 16:25:15 +10:00
|
|
|
|
function UniqueString( string = "" )
|
|
|
|
|
{
|
2021-03-06 01:11:43 +02:00
|
|
|
|
return DoUniqueString( "" + string );
|
2020-05-04 16:25:15 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function IncludeScript( name, scope = null )
|
|
|
|
|
{
|
2021-03-06 01:11:43 +02:00
|
|
|
|
if ( !scope )
|
2020-05-04 16:25:15 +10:00
|
|
|
|
{
|
|
|
|
|
scope = this;
|
|
|
|
|
}
|
|
|
|
|
return ::DoIncludeScript( name, scope );
|
|
|
|
|
}
|
2020-05-31 15:39:17 +10:00
|
|
|
|
|
2021-03-06 01:11:43 +02:00
|
|
|
|
function DispatchParticleEffect( particleName, origin, angles, entity = null )
|
|
|
|
|
{
|
2021-05-08 15:16:59 +03:00
|
|
|
|
return DoDispatchParticleEffect( particleName, origin, angles, entity );
|
2021-03-06 01:11:43 +02:00
|
|
|
|
}
|
|
|
|
|
|
2021-05-08 15:16:59 +03:00
|
|
|
|
function ImpulseScale( flTargetMass, flDesiredSpeed )
|
|
|
|
|
{
|
|
|
|
|
return flTargetMass * flDesiredSpeed;
|
|
|
|
|
}
|
|
|
|
|
__Documentation.RegisterHelp( "ImpulseScale", "float ImpulseScale(float, float)", "Returns an impulse scale required to push an object." );
|
|
|
|
|
|
2020-05-31 15:39:17 +10:00
|
|
|
|
)vscript";
|