DONTSPLASH in zscript

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!
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.

DONTSPLASH in zscript

Postby Kzer-Za » Mon Feb 11, 2019 3:47 am

Did anyone happen to notice that the +DONTSPLASH flag doesn't work when used in zscript? Could someone please test it, maybe it's just something on my system.

What I mean is, if you define a projectile usind a decorate file, +DONTSPLASH flag works and the projectile doesn't produce any splashes. But if you define a projectile (any projectile) in a zscript file, then +DONTSPLASH just doesn't have any effect: the projectile always produces splashes. I also tried setting this flag by using this in the spawn state:

Code: Select allExpand view
TNT1 A 0 {bDONTSPLASH = true;}


This doesn't work either.
Kzer-Za
 
Joined: 20 Aug 2017

Re: DONTSPLASH in zscript

Postby Blue Shadow » Mon Feb 11, 2019 7:52 am

It works on my end (GZDoom 3.7.2). Could you post the code in which it doesn't work?
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: DONTSPLASH in zscript

Postby Kzer-Za » Mon Feb 11, 2019 8:06 am

Well, the simplest projectiles that I tried would be this:

Code: Select allExpand view
Class SnakeProjWeak : SnakeProjA
{
Default
{
   +DONTSPLASH;
   -WINDTHRUST;
   Speed 17;
   DamageFunction 15;
   DamageType "Magic";
}
}

Class SnakeProjStrong : SnakeProjB
{
Default
{
   +DONTSPLASH;
   +WINDTHRUST;
   DamageFunction 45;
   DamageType "Fire";
}
}


First I created this as a decorate file, and it worked. Then I converted it to zscript, and now if I stand in water when one of these projectiles hit me, there are splashes all around. Decorate version suppressed them.
Kzer-Za
 
Joined: 20 Aug 2017

Re: DONTSPLASH in zscript

Postby Blue Shadow » Mon Feb 11, 2019 8:42 am

I tested that code in both DECORATE and ZScript. The results are identical: upon hitting a liquid surface, no splashes are created by the projectiles. However...

Kzer-Za wrote:[...] if I stand in water when one of these projectiles hit me, there are splashes all around.

That could be the blood spawned from the player upon being hit by the projectiles which is creating these splashes, not the projectiles themselves.
User avatar
Blue Shadow
 
 
 
Joined: 14 Nov 2010
Operating System: Windows 10/8.1/8 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: DONTSPLASH in zscript

Postby Kzer-Za » Mon Feb 11, 2019 9:02 am

Hm, when I added +BLOODLESSIMPACT the splashing ceased. Obviously I misremember that I didn't change anything when converting them to zscript. I must have removed BLOODLESSIMPACT.

Thanks a lot!
Kzer-Za
 
Joined: 20 Aug 2017


Return to Scripting

Who is online

Users browsing this forum: No registered users and 2 guests