- Adjust VisibleToPlayerClass to accept multiple classes as well as work with inheritance.
SVN r3291 (trunk)
This commit is contained in:
parent
c013e72caa
commit
faa122ede3
4 changed files with 22 additions and 9 deletions
|
|
@ -1246,10 +1246,13 @@ DEFINE_PROPERTY(visibletoteam, I, Actor)
|
|||
//==========================================================================
|
||||
// [BB]
|
||||
//==========================================================================
|
||||
DEFINE_PROPERTY(visibletoplayerclass, S, Actor)
|
||||
DEFINE_PROPERTY(visibletoplayerclass, S_s, Actor)
|
||||
{
|
||||
PROP_STRING_PARM(n, 0);
|
||||
defaults->VisibleToPlayerClass = n;
|
||||
for(unsigned int i = 0;i < PROP_PARM_COUNT;++i)
|
||||
{
|
||||
PROP_STRING_PARM(n, i);
|
||||
info->VisibleToPlayerClass.Push(FindClassTentative(n, "PlayerPawn"));
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue