I copied the code of another monster, and here is the result. This is the code of the original Predator:
ifaction APREDDYING
{
ifactioncount 5
{
action APREDDEAD
}
break
}
else
{
ifaction APREDDEAD
{
}
else
{
ifdead
{
action APREDDYING
break
}
}
}
ifaction APREDDEAD
{
cstat 0
strength 0
ifrespawn
ifcount RESPAWNACTORTIME
{
spawn TRANSPORTERSTAR
cstat 257
state predsetstrength
ai AIPREDSEEK
}
ifhitweapon
{
ifwasweapon RADIUSEXPLOSION
{
sound SQUISHED
state standard_jibs
state standard_jibs
state standard_jibs
shoot BLOODSPLAT2
shoot BLOODSPLAT3
state random_wall_jibs
killit
}
break
}
else
state checksquished
break
}
Result:
1. The Predator normally dies with basic weapons (shotgun and pistol for exemple).
2. He does not die with the freezethrower and expander it.
Here is the replacement code:
ifaction APREDSTAND
ai AIPREDSEEK
else
ifaction APREDDEAD
{
ifrespawn
ifcount RESPAWNACTORTIME
{
spawn TRANSPORTERSTAR
cstat 257
strength PRED1STRENGTH
ai AIPREDSEEK
}
else
{
strength 0
ifhitweapon
ifwasweapon RADIUSEXPLOSION
{
sound SQUISHED
state standard_jibs
killit
}
break
}
}
else
ifaction APREDFROZEN
{
ifcount THAWTIME
{
ai AIPREDSEEK
getlastpal
}
else
ifcount FROZENDRIPTIME
ifrnd 8
spawn WATERDRIP
ifhitweapon
{
ifwasweapon FREEZEBLAST
{
strength 0
break
}
addkills 1
lotsofglass 30
ifrnd 84 spawn BLOODPOOL
sound GLASS_BREAKING
killit
}
ifp pfacing
ifpdistl FROZENQUICKKICKDIST
pkick
break
}
ifai AIPREDDEAD
state preddyingstate
else
As well as the code of death:
state preddyingstate
iffloordistl 32
{
ifactioncount 5
{
cstat 257
iffloordistl 8
sound THUD
ifrnd 64
spawn BLOODPOOL
state rf
strength 0
move PREDSTOPPED
action APREDDEAD
}
break
}
else
{
state rf
move 0
action APREDDYING
}
ends
Result:
1. It does not die any more normally, with the basics weapons (shotgun and pistol for exemple).
2. Freezethrower and expander work.
3. the code "state preddyingstate" is not taken into account, especially for the sound "THUD"
The RPG and pipebomb weapons are not affected. They work very well.