
What's the dirtiest trick you've had to pull?
Re: What's the dirtiest trick you've had to pull?
Virtually all of Blocks of Doooom's (the first one) ACS is an utter mess. I'm surprised it holds together considering how hacky and unclean it is - in fact I daresay that sooner or later a version of ZDoom will come along breaking it completely. 
			
			
									
						
										
						
Re: What's the dirtiest trick you've had to pull?
eh, maby. most decorate stuff winds up being a "hack".Siggi wrote:Wasn't the method for getting around the 8 weapons per key limit in Urban Brawl a huge hack?
I remember that being mentioned somewhere.
- Demolisher
- Posts: 1749
- Joined: Mon Aug 11, 2008 12:59 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Winchester, VA
- Contact:
Re: What's the dirtiest trick you've had to pull?
I made the quake I items 3d map geometry, and instant lowering after pickup.
			
			
									
						
										
						Re: What's the dirtiest trick you've had to pull?
The only thing I can say that i did was slightly hack would be the Soul Leech's draining effect. Still isn't perfect because it doesn't work in Co-op (souls randomly pick other players to goto rather than the shooter), and doesn't work for DM at all. I've been trying to fix this problem, but i've not yet managed to get the thing to home in only on the player. O_o
			
			
									
						
										
						- DoomRater
- Posts: 8270
- Joined: Wed Jul 28, 2004 8:21 am
- Preferred Pronouns: He/Him
- Location: WATR HQ
- Contact:
Re: What's the dirtiest trick you've had to pull?
The entire left gun in my dual glock mod.  Thankfully it ended up looking so much neater with custom state jumps than I had feared, but man that was some tricky coding for everything.
Also, the Matilda is a giant hack of blocker projectiles so that hitscans can get through a short period of gaps in the shield. Next time I attempt this I'm going all projectile/railgun attitude with it instead so I don't end up with a gap.
			
			
									
						
										
						Also, the Matilda is a giant hack of blocker projectiles so that hitscans can get through a short period of gaps in the shield. Next time I attempt this I'm going all projectile/railgun attitude with it instead so I don't end up with a gap.
Re: What's the dirtiest trick you've had to pull?
The first complex weapon I ever wrote was my minigun for my Hell Worm project. It's first incarnation was in DeHackEd (a constantly-spinning, fast-firing minigun, it was actually pretty efficient with the frames) but I wanted to switch to DECORATE for reasons obvious.
Like I said, as my first complex weapon, it was fucking hideous. It worked well, but had so much shit going on I could've solved by looking up relavent functions on the Wiki.
When I rewrote it, as I did several times to all my weapons, I literally had to start from scratch, it was so bad.
But the dirty trick here is how I made the weapon play a warning beep as it neared overheating. The player would be given an item when the gun saw you had at least 75 "heats", and would jump to a zero-length state where the weapon played a bee-bee-beep noise (the low ammo sound from Doom 3's machine gun actually, but it's all good), then give you an item that said the warning was over so the gun would jump over the check for the warning check item.
I went crosseyed typing that.
			
			
									
						
										
						Like I said, as my first complex weapon, it was fucking hideous. It worked well, but had so much shit going on I could've solved by looking up relavent functions on the Wiki.
When I rewrote it, as I did several times to all my weapons, I literally had to start from scratch, it was so bad.
But the dirty trick here is how I made the weapon play a warning beep as it neared overheating. The player would be given an item when the gun saw you had at least 75 "heats", and would jump to a zero-length state where the weapon played a bee-bee-beep noise (the low ammo sound from Doom 3's machine gun actually, but it's all good), then give you an item that said the warning was over so the gun would jump over the check for the warning check item.
I went crosseyed typing that.

- Apothem
- Posts: 2070
- Joined: Sat Nov 29, 2003 7:13 pm
- Location: Performing open heart surgery on an ACS compiler.
Re: What's the dirtiest trick you've had to pull?
Hmmmmmm... most hacky thing.... If I had to go for specifics, a monster spawner that replaces all monsters based on their spawnid was a bit wierd. Especially when ZDoom apparently doesn't even give the zombieman a spawn id anymore apparently.
			
			
									
						
										
						- esselfortium
- Posts: 3862
- Joined: Tue Sep 19, 2006 8:43 pm
- Contact:
Re: What's the dirtiest trick you've had to pull?
The dirtiest trick the ZDoom ever pulled, was convincing the world he didn't exist...
			
			
									
						
										
						Re: What's the dirtiest trick you've had to pull?
Yes it does, it's T_ZOMBIE (4).Apothem wrote:Hmmmmmm... most hacky thing.... If I had to go for specifics, a monster spawner that replaces all monsters based on their spawnid was a bit wierd. Especially when ZDoom apparently doesn't even give the zombieman a spawn id anymore apparently.
However, I'd expect a replacer based on [wiki]spawn numbers[/wiki] to only work when the monster is spawned by an ACS function that refers to the actor by its spawn number. It wouldn't work for things placed directly on the map, and it wouldn't work for monsters spawned by functions such as [wiki]SpawnSpot[/wiki].
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: What's the dirtiest trick you've had to pull?
It made ZCTC about 300kb bigger! (not really)HotWax wrote:Ever heard of the ChickenSaver(TM)?Kinsie wrote:the hackiest, most counter-intuitive method
Before DECORATE, anything that manipulated actors belongs in here. There's a ton of things in ZPortal and GVH that I could shove in here too but I can't think of anything off the top of my mind.
- Apothem
- Posts: 2070
- Joined: Sat Nov 29, 2003 7:13 pm
- Location: Performing open heart surgery on an ACS compiler.
Re: What's the dirtiest trick you've had to pull?
I know that's the spawn id, but apparently, when you go to read it in the script, it wont detect it. It's literally the only monster it ignores. Code works perfectly fine and works for me. Basing it off of spawn id's was kinda more of an experiment than my final solution. It was one of those things that I just wanted to see if it'd work. Surprisingly, it did, and almost too well. But it's all based off of a script that I put into every monster's spawn state (including the originals).Gez wrote:Yes it does, it's T_ZOMBIE (4).Apothem wrote:Hmmmmmm... most hacky thing.... If I had to go for specifics, a monster spawner that replaces all monsters based on their spawnid was a bit wierd. Especially when ZDoom apparently doesn't even give the zombieman a spawn id anymore apparently.
However, I'd expect a replacer based on [wiki]spawn numbers[/wiki] to only work when the monster is spawned by an ACS function that refers to the actor by its spawn number. It wouldn't work for things placed directly on the map, and it wouldn't work for monsters spawned by functions such as [wiki]SpawnSpot[/wiki].
Re: What's the dirtiest trick you've had to pull?
I'd be interested in seeing that code, because if it works for other values it should work for 4 as well. There is no conflict or other issue with the zombieman's spawnid.
			
			
									
						
										
						- 
				Scuba Steve
- Posts: 1060
- Joined: Sat Mar 27, 2004 8:56 pm
Re: What's the dirtiest trick you've had to pull?
Oh hay, the request I made numerous times in the 'requested features' forum... only to be told by Graf that no quality mod would ever need more than 8 per slot so he refused to increase the numberSiggi wrote:Wasn't the method for getting around the 8 weapons per key limit in Urban Brawl a huge hack?
- Cutmanmike
- Posts: 11354
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
Re: What's the dirtiest trick you've had to pull?
Wait, so you can only have 8 per setslot? Cause that might be a problem for my megaman mod... Or am I thinking this the wrong way.
			
			
									
						
										
						Re: What's the dirtiest trick you've had to pull?
I think that limit was removed when the [wiki]weapon slots[/wiki] system was reorganized.Cutmanmike wrote:Wait, so you can only have 8 per setslot?










