mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 17:01:03 +00:00
- added scripting exports for the global map types and a few more actor utilities.
This commit is contained in:
parent
cc6629a95f
commit
df7e6dfec8
13 changed files with 988 additions and 16 deletions
|
@ -1573,6 +1573,19 @@ DEFINE_ACTION_FUNCTION_NATIVE(_Raze, bcos, bcos)
|
|||
ACTION_RETURN_INT(bcos(v, shift));
|
||||
}
|
||||
|
||||
int raze_getangle(double x, double y)
|
||||
{
|
||||
return bvectangbam(x, y).asbuild();
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Raze, getangle, raze_getangle)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_FLOAT(x);
|
||||
PARAM_FLOAT(y);
|
||||
ACTION_RETURN_INT(raze_getangle(x, y));
|
||||
}
|
||||
|
||||
DEFINE_ACTION_FUNCTION_NATIVE(_Raze, GetBuildTime, I_GetBuildTime)
|
||||
{
|
||||
ACTION_RETURN_INT(I_GetBuildTime());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue