Every Sprite has a Santa Hat (almost)
#1 Posted 20 December 2019 - 04:22 AM
When you blow them up, their jibs have Santa hats.
Palm trees, ammo containers, garbage cans. Rats. Cameras. Pretty much everything has a Santa hat.
Except the Santa hats. They don't have Santa hats.
Also, bulletholes, explosions, and transporterbeams don't have Santa hats.
Raindrops do, though. And bits of debris. Most everything does.
Am I making myself clear?
So I made this mod today. If you want (almost) everything to have a Santa hat, then download it. It's 33KB, because I included the GAME.CON which isn't really necessary because it works with any old GAME.CON. But if you aren't sure what to do, just download those little files and put them in a folder that has an install of the vanilla game, then start the game. You will be amused. Or not.
Download link from dropbox:
https://www.dropbox....ashats.zip?dl=0
Here's video, because, let's face it, installing this is probably not worth your time.
#5 Posted 20 December 2019 - 06:12 AM
THE WALLS AND SECTORS GET SANTA HATS TOO
EDIT: AND ALSO DEEZ NUTS.
This post has been edited by Radar 100 Watts: 20 December 2019 - 07:21 AM
#6 Posted 20 December 2019 - 06:33 AM
Radar 100 Watts, on 20 December 2019 - 06:12 AM, said:
THE WALLS AND SPRITES GET SANTA HATS TOO
V 3.0 : the Santa's hats will get Santa's hats too ?
#7 Posted 20 December 2019 - 06:50 AM
Seb Luca, on 20 December 2019 - 06:33 AM, said:
Yes, please.
This post has been edited by Lazy Dog: 20 December 2019 - 06:52 AM
#11 Posted 20 December 2019 - 11:36 AM
#12 Posted 20 December 2019 - 12:16 PM
If you ever make a new version I'd suggest removing the hats from the wall blood splatter, because that just looks glitchy. I also noticed that the HoloDuke (deployed) does not have a santa hat.
This post has been edited by necroslut: 20 December 2019 - 12:16 PM
#13 Posted 20 December 2019 - 12:36 PM
necroslut, on 20 December 2019 - 12:16 PM, said:
If you ever make a new version I'd suggest removing the hats from the wall blood splatter, because that just looks glitchy. I also noticed that the HoloDuke (deployed) does not have a santa hat.
If anyone cares, they can add more exceptions to the list in "state spawnhats" to prevent hats from spawning on the splatters. The holoduke's hat being invisible was a side-effect of me making the player's hat invisible when in 1st person view. I'll bet if you press F7 that your holoduke's hat would appear.
The actual usefulness of this mod is it has code for determining the exact top of a sprite, regardless of the sprite's size, dimensions, and what animation it happens to be displaying at the moment. That would be good for more accurately detecting headshots, for example.
#14 Posted 22 December 2019 - 10:38 AM
Phredreeke, on 20 December 2019 - 10:09 AM, said:
That's no ordinary Wang.
This post has been edited by Lazy Dog: 22 December 2019 - 10:39 AM
#16 Posted 23 December 2019 - 05:19 AM
It's early, but, Merry Christmas everyone.
Phredreeke, on 22 December 2019 - 10:49 AM, said:
/Thread
*Burp*
#17 Posted 23 December 2019 - 06:20 AM
Phredreeke, on 20 December 2019 - 10:09 AM, said:
Everybody get's a santa hat.
#18 Posted 24 December 2019 - 02:21 AM
Phredreeke, on 22 December 2019 - 10:49 AM, said:
YAHOO!!! The Dopefish still lives, and this time with a Santa hat!
Happy holidays, lads. Hail to the king, as always!
#19 Posted 28 December 2019 - 11:55 AM
But in all seriousness the technical implication of that is pretty cool
This post has been edited by Sangman: 28 December 2019 - 11:55 AM
#20 Posted 28 December 2019 - 04:10 PM
Sangman, on 28 December 2019 - 11:55 AM, said:
Yeah, tiledata.ysize is the key here. Multiply that by yrepeat, add a little magic sauce and you get the top of the sprite. The bottom of the sprite is just the .z value, the top can be obtained through the formula alluded to, then of course the up/down midpoint is just the average of the two. So with all that data, we can get a pretty good read on heights needed not only for headshots on any arbitrary enemy, but also chest, leg and groin shots (assuming typical human proportions). I'm sure there are other applications.