Forge, on 18 October 2018 - 02:00 PM, said:
"EDuke32 Scripting " would better serve as its own dedicated subforum, instead of just a thread where information gets buried under 80 pages of posts.
Individual questions and answers could then have their own unique threads, and scripts can be located easily by the thread's title description.
Agreed! As a noob I'm sure many of my questions have been asked numerous times. I actually started going through the thread from page 1.. I think I got to page 5 and then went to bed.. to be continued.
Anyway I actually have a question for the .CON pros; basically I want to create 2-stage breakable glass like in DukePlus. Now I had a bit of a look at Dan's code and it's way over my head. However I noticed in the AMC TC they also have certain sprites that have 2 stages, like the following wooden dummy actor;
useractor notenemy 3899 // wooden dummy intact
cstator 256
ifhitweapon
{ ifwasweapon KNEE strength 1 else { sound WOODBREAK shoot WOODSCRAP shoot WOODSCRAP strength 1 cactor 3900 } }
enda
useractor notenemy 3900 // wooden dummy half-broken
cstator 256
ifhitweapon
{
ifwasweapon KNEE strength 1 else
{ sound WOODBREAK shoot WOODSCRAP shoot WOODSCRAP shoot WOODSCRAP shoot WOODSCRAP shoot WOODSCRAP shoot WOODSCRAP killit } }
enda
So my question is either to Trooper Dan or anyone familiar with his breakable glass code; what's the advantage of doing it your way? I'm all for the simplest method but if there are certain advantages then I'd consider trying to get Dan's code working in my mod.
Thank you