(Yes I posted this before, I posted it in the wrong topic, my fault. Forums aren't my forte)
I'm using the latest version of the open source installation of FPS Creator Classic with the latest version of the Black Ice Mod.
So before you laugh and say, "Why are you still using FPS Creator Classic in 2021?" First answer, I don't know. Second answer, because it's an opportunity to get a better grasp of scripting.
I've been working two or so days now on a script that checks if the player shot the enemy in the head, and if they did, then how much damage did they do, if they did over 20 damage to the head then combust the head and set enemy health to 0.
However, it's not really working out, like at all. First I could get the head to blow up, make the sound, and kill the enemy, but it wouldn't matter where you hit, if you did over 20 damage then the head would blow up anyways. Trying to fix that, now it just won't do anything at all. I'm still a beginner at speaking FPSC's language, so maybe it's something REALLY simple that I didn't notice. I'm not asking for anyone to do the work for me, but at the very least give me pointers in the right direction, I'm dumbfounded what to do and honestly about 3 more tries away from smashing my OWN head into my desk.
Here's the code snippet :
:state=1:shotdamagetype=1,shotdamage=20:state=105
:state=105:hidelimb=46,bloodspurt=1,state=106,sound=audiobank\voices\Infected\head.wav
:state=106:sethealth=0,aistop,coloff
"Oh YES! I hate this, it is revolting!"
"More?"
"Please!"