- Added MF5_PIERCEARMOR flag that allows damaging objects that aren't

affected by armor.
- Added an unfreeze CCMD so that frozen players can be unfrozen for testing.
- Added special death states for projectiles hitting actors.
- Added ACS SetActorPitch/GetActorPitch functions.
- Added cameraheight property for actors.


SVN r359 (trunk)
This commit is contained in:
Christoph Oelckers 2006-10-22 10:32:41 +00:00
commit 0d5e3cf97e
17 changed files with 128 additions and 28 deletions

View file

@ -4420,6 +4420,21 @@ int DLevelScript::RunScript ()
}
break;
case PCD_GETACTORPITCH:
{
AActor *actor = SingleActorFromTID (STACK(1), activator);
if (actor == NULL)
{
STACK(1) = 0;
}
else
{
STACK(1) = actor->pitch >> 16;
}
}
break;
case PCD_GETLINEROWOFFSET:
if (activationline)
{
@ -4900,6 +4915,19 @@ int DLevelScript::RunScript ()
sp -= 2;
break;
case PCD_SETACTORPITCH:
{
FActorIterator iterator (STACK(2));
AActor *actor;
while ( (actor = iterator.Next ()) )
{
actor->pitch = STACK(1) << 16;
}
}
sp -= 2;
break;
case PCD_PLAYERCLASS: // [GRB]
if (STACK(1) < 0 || STACK(1) >= MAXPLAYERS || !playeringame[STACK(1)])
{