[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/vr/ - Retro Games

Search:


View post   

>> No.7287805 [View]
File: 58 KB, 1273x310, secrets and lies.png [View same] [iqdb] [saucenao] [google]
7287805

>want to have the Mancubus make stomping sounds when walking because he's a fat fuck
>I make a new monster actor which inherits the original monster's code and just add the tweaked state for walking around, which has the sound calls added
>this works, briefly
>then when he attacks, it stops working and you can't hear him stomping anymore
>no goddamn idea why this happens, it's completely inexplicable
>all the sounds are present and defined, it uses free sound channels
>try rearranging the states in all kinds of ways, adding NULL A 0 dummy frames and shit, nothing works

>turns out that what the problem is that I used inheritance
>inherited actors are prone to not use the new state that replaces the old one, but going back to the defined states of the original actor
>in spite of the new replacement state being right there
>turns out the fix is to just copy the code for the original Mancubus and tweak it from there
>this approach is actively discouraged by the ZDoom wiki
>there's a disclaimer on every actor page that says I shouldn't do this because it'll cause problems
>when the opposite has been the case for me and inheritance doesn't do what it's supposed to
PROGRAMMING IS BALLS

Navigation
View posts[+24][+48][+96]