[ 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.3246965 [View]
File: 1.08 MB, 1920x1080, Screenshot_Doom_20160527_122730.png [View same] [iqdb] [saucenao] [google]
3246965

>>3245224

Oh my god guys, I'm so happy I've gotta share.

So I'm working on the old Zombies TC for doom from the 90's, changing the weapons, adding zombies, give it a bit more of that "Romero" feel to it. One thing that has always bothered me is that bikers and zombies would cooperate to kill you, living in harmony. Since decorate has no function for multiple factions and "thing_hate" just doesnt work with multiple enemy types, I spent weeks trying to find a workaround. So here's what I did : I added a line to the zombies "see" state that shoots an invisible explosive object straight at the ground. The object explodes with a small radius, attracting infighting from nearby enemies. I then set all the zombies to belong to the same species so they wouldn't fight each other and all the humans to be immune to this damagetype so they don't lose health from it but still react by becoming agressive towards whoever emitted the damage.

I don't want to seem like I'm boasting, but I'm pretty new to decorate (I did a few things but that was years ago and much of my "work" was flat out stealing code from other authors) so I'm pretty fucking proud of myself. There's probably a more elegant way of doing it but... It works !

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