100% NoInFighting Archvile

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

100% NoInFighting Archvile

Postby spforce » Mon Oct 12, 2020 5:53 am

i want to have a mod of 100% noinfighting or damage gameplay mod that no any monster could infight or damage or get in painstate any other monster
the only thing i missing to get this complete is the archvile , i doesnt know how to get that its attack wont do any damage and no getting to painstate to other monsters
and also no radius damage not to himself or to any other monster (also no jump from radius)
i tryed to give a new damagetype for the archvile : 'VileNoInfight' but for some resson its not working :
ACTOR ArchvileNoInfight : Archvile replaces Archvile
{
Species "enemy"
+NOINFIGHTSPECIES
+DONTHURTSPECIES
painchance "NoInfightRocket", 255
DamageFactor "NoInfightRocket", 0
painchance "NoInfightBullet", 255
DamageFactor "NoInfightBullet", 0
painchance "Fish", 255
DamageFactor "Fish", 0
States
{
Missile:
VILE G 0 Bright A_VileStart
VILE G 10 Bright A_FaceTarget
VILE H 8 Bright A_VileTarget ("ArchvileFireNoInfight")
VILE IJKLMN 8 Bright A_FaceTarget
VILE O 8 Bright A_VileAttack ("vile/stop" , "VileNoInfight" , VAF_DMGTYPEAPPLYTODIRECT)
VILE P 20 Bright
Goto See
}
}

and this is the zombieman tested not working having the new damagetype used:

ACTOR ZombieManNoInfight : ZombieMan replaces ZombieMan
{
Species "enemy"
+DONTHURTSPECIES
+NOINFIGHTSPECIES
+SHOOTABLE
painchance "NoInfightRocket", 255
DamageFactor "NoInfightRocket", 0
painchance "NoInfightBullet", 255
DamageFactor "NoInfightBullet", 0
painchance "Fish", 255
DamageFactor "Fish", 0
painchance "VileNoInfight", 255
DamageFactor "VileNoInfight", 0
States
{
Missile:
POSS E 10 A_FaceTarget
POSS F 8 A_CustomBulletAttack (22.5, 0, 1, random(1,5) * 3, "BulletPuffNoInfight", 0, CBAF_NORANDOM)
POSS E 8
Goto See
}
}

ACTOR ArchvileFireNoInfight
{
+NOBLOCKMAP
+NOGRAVITY
DamageType VileNoInfight
RenderStyle Add
Alpha 1
States
{
Spawn:
FIRE A 2 Bright A_StartFire
FIRE BAB 2 Bright A_Fire
FIRE C 2 Bright A_FireCrackle
FIRE BCBCDCDCDEDED 2 Bright A_Fire
FIRE E 2 Bright A_FireCrackle
FIRE FEFEFGHGHGH 2 Bright A_Fire
Stop
}
}

the problem is now the archvile doesnt damage the player and doesnt damage monsters as it would , it can do damage of only 1 point if i would stand near zombieman and enter painstate for some resson even thorugh the new damage type
is defined , can someone give me the code of archvile attack same as original just with the new damagetype working?
spforce
 
Joined: 01 Feb 2014

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest