mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- added ACS SetSectorTerrain function.
This commit is contained in:
parent
71c7f2b42c
commit
7f454358b9
1 changed files with 14 additions and 0 deletions
|
@ -75,6 +75,7 @@
|
||||||
#include "actorptrselect.h"
|
#include "actorptrselect.h"
|
||||||
#include "farchive.h"
|
#include "farchive.h"
|
||||||
#include "decallib.h"
|
#include "decallib.h"
|
||||||
|
#include "p_terrain.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
|
||||||
#include "g_shared/a_pickups.h"
|
#include "g_shared/a_pickups.h"
|
||||||
|
@ -4459,6 +4460,7 @@ enum EACSFunctions
|
||||||
ACSF_Warp, // 92
|
ACSF_Warp, // 92
|
||||||
ACSF_GetMaxInventory,
|
ACSF_GetMaxInventory,
|
||||||
ACSF_SetSectorDamage,
|
ACSF_SetSectorDamage,
|
||||||
|
ACSF_SetSectorTerrain,
|
||||||
|
|
||||||
/* Zandronum's - these must be skipped when we reach 99!
|
/* Zandronum's - these must be skipped when we reach 99!
|
||||||
-100:ResetMap(0),
|
-100:ResetMap(0),
|
||||||
|
@ -5968,6 +5970,18 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case ACSF_SetSectorTerrain:
|
||||||
|
if (argCount >= 3)
|
||||||
|
{
|
||||||
|
int terrain = P_FindTerrain(FBehavior::StaticLookupString(args[2]));
|
||||||
|
FSectorTagIterator it(args[0]);
|
||||||
|
int s;
|
||||||
|
while ((s = it.Next()) >= 0)
|
||||||
|
{
|
||||||
|
sectors[s].terrainnum[args[1]] = terrain;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue