but when i change the state label of the monster to the raise label, the player can pass through the player.
Code: Select all
action void A_resurrect(){
ThinkerIterator ti = ThinkerIterator.Create("Actor");
Actor a;
while ( a = Actor(ti.Next()) )
{
if ( !IsVisible(a,false)
|| (a is 'PlayerPawn')
|| !a.bISMONSTER || (a.health > 0)
|| (Distance3D(a) > 150));
else break;
}
if(a==null)return;
a.bFRIENDLY=1;
a.bSHOOTABLE=1;
a.bSOLID=1;
a.bCANPASS=1;
a.bCANPUSHWALLS=1;
a.bCOUNTKILL=1;
a.bISMONSTER=1;
a.bACTIVATEMCROSS=1;
a.bCANUSEWALLS=1;
a.health=a.spawnhealth();
if((a is "Cyberdemon") || (a is "SpiderMasterMind") || (a is "Archvile"))a.A_Remove(AAPTR_DEFAULT);
else a.setstatelabel("Raise");
//A_LogInt(a.radius);
}
here is my mod