- added Gez's submission for inventory restrictions but changed the added checks to be in the main CallTryPickup function.
SVN r3296 (trunk)
This commit is contained in:
parent
a0bb1c2546
commit
3c47a30249
17 changed files with 158 additions and 199 deletions
|
|
@ -146,6 +146,11 @@ FActorInfo *CreateNewActor(const FScriptPosition &sc, FName typeName, FName pare
|
|||
info = ti->ActorInfo;
|
||||
}
|
||||
|
||||
// Copy class lists from parent
|
||||
info->ForbiddenToPlayerClass = parent->ActorInfo->ForbiddenToPlayerClass;
|
||||
info->RestrictedToPlayerClass = parent->ActorInfo->RestrictedToPlayerClass;
|
||||
info->VisibleToPlayerClass = parent->ActorInfo->VisibleToPlayerClass;
|
||||
|
||||
if (parent->ActorInfo->DamageFactors != NULL)
|
||||
{
|
||||
// copy damage factors from parent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue