mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 23:02:08 +00:00
- added GetActorFloorTexture and GetActorFloorTerrain ACS functions.
This commit is contained in:
parent
ea163f3898
commit
85488f2f30
1 changed files with 31 additions and 0 deletions
|
@ -4408,6 +4408,8 @@ enum EACSFunctions
|
|||
ACSF_DamageActor, // [arookas]
|
||||
ACSF_SetActorFlag,
|
||||
ACSF_SetTranslation,
|
||||
ACSF_GetActorFloorTexture,
|
||||
ACSF_GetActorFloorTerrain,
|
||||
|
||||
|
||||
// OpenGL stuff
|
||||
|
@ -6100,6 +6102,35 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
|
|||
break;
|
||||
}
|
||||
|
||||
case ACSF_GetActorFloorTexture:
|
||||
{
|
||||
auto a = SingleActorFromTID(args[0], activator);
|
||||
if (a != nullptr)
|
||||
{
|
||||
return GlobalACSStrings.AddString(TexMan[a->floorpic]->Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
return GlobalACSStrings.AddString("");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case ACSF_GetActorFloorTerrain:
|
||||
{
|
||||
auto a = SingleActorFromTID(args[0], activator);
|
||||
if (a != nullptr)
|
||||
{
|
||||
return GlobalACSStrings.AddString(Terrains[a->floorterrain].Name);
|
||||
}
|
||||
else
|
||||
{
|
||||
return GlobalACSStrings.AddString("");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue