Document more functions.

This commit is contained in:
JezuzLizard
2024-02-22 20:43:44 -08:00
parent defe9a65a4
commit ccf7afa193
15 changed files with 108 additions and 77 deletions

View File

@ -439,4 +439,34 @@ animscripted( origin, angles, statename, substate_value, mode )
{
self animscripted( origin, angles, statename, substate_value, mode );
}
}
}
/@
[DESCRIPTION]: Spawns a temp entity at CALLER's location which plays <sound_name>.
If sound is invalid sound will simply fail to play with no error.;
[CALL_TYPE]: method;
[USAGE]: self playsound( <sound_name> );
[PARAMS]: CALLER:<entity> ARG1:<string>;
[PARAMS_NOTES]: NONE;
[RETURNS]: NONE;
@/
playsound( sound_alias )
{
self playsound( sound_alias );
}
/@
[DESCRIPTION]: Spawns a temp entity at CALLER's location which plays <sound_name>.
If sound is invalid sound will simply fail to play with no error.;
[CALL_TYPE]: method;
[USAGE]: playback_time = playsound( <sound_alias> );
[PARAMS]: ARG1:<string>;
[PARAMS_NOTES]: NONE;
[RETURNS]: <int>;
[RETURNS_NOTES]: Returns -1 if it fails to hash <sound_alias> or doesn't find <sound_alias> in the loaded sound banks.;
@/
soundgetplaybacktime( sound_alias )
{
return soundgetplaybacktime( sound_alias )
}