Quantcast
Channel: ZDoom
Viewing all articles
Browse latest Browse all 3391

Scripting • [ACS] Odd "BUG" String Array in Hexen

$
0
0
Hello

I'm having a very odd "bug" in Hexen with this pretty simple script in ACS

Code:

script "Slows_Remove" (void) { //Removes the slow-down factor from the player in about 1.2 secondsstr slows[5] = { "BowSlow1", "BowSlow2", "BowSlow3", "BowSlow4", "BowSlow5" };Log(s:slows[0]);for(int bs = 0; bs <= 4; bs++) {Log(s:slows[bs]);if(CheckInventory(slows[bs])) {TakeInventory(slows[bs], 1);}Delay(10);}}
This script should just remove the 5 powerups stated in the string array and it works perfectly fine... in Doom... but in Hexen, for reasons quite mysterious to me, those strings get read respectively:
"Spawn09", "Spawn10" , "FireDemonAttack", "Spawn08", "the door is locked"

Now... WTH????

Of course, this means that the script won't remove any of those powerups.

Can any of you help me here? D:

Statistics: Posted by Kan3x — Wed May 28, 2025 3:24 pm



Viewing all articles
Browse latest Browse all 3391

Trending Articles