- Added per-actor teleport fog modifications.
- New properties include TeleFogSourceType and TeleFogDestType. - TeleFogSourceType is the fog left behind where the actor teleported away from. - TeleFogDestType is the fog the actor sees when it arrives at its destination. - Added A_SetTeleFog(<oldpos>,<newpos>) -- oldpos sets TeleFogSourceType, newpos sets TeleFogDestType.
This commit is contained in:
parent
24f1bfae99
commit
30acb72006
8 changed files with 68 additions and 27 deletions
|
|
@ -1416,6 +1416,26 @@ DEFINE_PROPERTY(stamina, I, Actor)
|
|||
defaults->stamina = i;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//==========================================================================
|
||||
DEFINE_PROPERTY(telefogsourcetype, S, Actor)
|
||||
{
|
||||
PROP_STRING_PARM(str, 0);
|
||||
if (!stricmp(str, "TeleportFog")) defaults->TeleFogSourceType = NAME_None;
|
||||
else defaults->TeleFogSourceType = str;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
//==========================================================================
|
||||
DEFINE_PROPERTY(telefogdesttype, S, Actor)
|
||||
{
|
||||
PROP_STRING_PARM(str, 0);
|
||||
if (!stricmp(str, "TeleportFog")) defaults->TeleFogDestType = NAME_None;
|
||||
else defaults->TeleFogDestType = str;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// Special inventory properties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue