Small projectile-based monster mod

Projects that alter game functions but do not include new maps belong here.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

Small projectile-based monster mod

Postby ZZYZX » Wed Jan 20, 2016 2:13 pm

Actually I made this as a proof-of-concept wad like most stuff that I do (hmmm gotta eventually make a list somewhere for all of it), but it turned out to be pretty good so I'm posting it as an actual mod.
Just saying that the original idea was from Lance who told me that he was going to do something similar and it interested me :P
Basically what it does is adding simple player movement prediction for classic Doom monsters (Imp, Baron/Hellknight, Revenant, Mancubus, Cacodemon, Arachnotron, Cyberdemon).

There are minor visual modifications to the monsters as well as changing speed of monster projectiles to constant 15 for these that have normal speed of 10 and fastmonsters speed of 20.

Demo of pretty tough cyberdemon:


Download: http://www.mediafire.com/download/v8317 ... rtmons.wad

Works with ZDoom 2.7.1 and associated GZDoom, also works with Zandronum 3.0. ACS sources included.
Everyone can abuse the code for whatever reasons they want. Enabling prediction for your monster is generally as simple as copypasting existing A_CustomMissile code.
Last edited by ZZYZX on Fri Jun 24, 2016 11:03 am, edited 1 time in total.
User avatar
ZZYZX
le chat du rabbin
 
 
 
Joined: 14 Oct 2012
Location: Ukraine
Discord: ZZYZX#1394
Github ID: jewalky

Re: Small projectile-based monster mod

Postby mumblemumble » Wed Jan 20, 2016 2:38 pm

....Don't you fucking DARE give vae permission to use this!!! IM WARNING YOU!!! Hideous destructor is hard enough!!!

That said, might be perfect for 1 or 2 of demonsteeles monsters.
Last edited by mumblemumble on Wed Jan 20, 2016 2:47 pm, edited 1 time in total.
mumblemumble
King of typos
 
Joined: 23 Aug 2013

Re: Small projectile-based monster mod

Postby DavidN » Wed Jan 20, 2016 2:44 pm

Nice :) Can't open it from where I am to check the code - does it do it by factoring in the player's movement speed to its CustomMissile angle?
User avatar
DavidN
 
 
 
Joined: 29 Dec 2015

Re: Small projectile-based monster mod

Postby ZZYZX » Wed Jan 20, 2016 2:48 pm

Basically it takes player's current location and assumes that the player will move in same direction for N tics (N=projectile speed/distance), and then fires at these coordinates, by using angle offset (and absolute pitch) in A_CustomMissile.

edit: Updated the archive, it had a bit broken temporary TID mechanism. Wouldn't work if multiple monsters had same TID.
It now remembers old TID, then makes a temporary one to return after SetActivatorToTarget, then resets back to old TID.
User avatar
ZZYZX
le chat du rabbin
 
 
 
Joined: 14 Oct 2012
Location: Ukraine
Discord: ZZYZX#1394
Github ID: jewalky

Re: Small projectile-based monster mod

Postby mumblemumble » Wed Jan 20, 2016 4:33 pm

Hmm....would it be at all possible to take the angle offset used, and multiply the spread by THAT, so an enemy can swing to hit, but also becomes grossly innacurate the further they aim ahead if the player moved more suddenly? If that could be done as well, that would actually be pretty sweet.
mumblemumble
King of typos
 
Joined: 23 Aug 2013

Re: Small projectile-based monster mod

Postby ZZYZX » Wed Jan 20, 2016 7:29 pm

Modified the code so that it will try to detect recent player movement changes (angle wise, like running in circles) and adjust appropriately.
Not sure of the effect of this on DoomImps (which were actually the reason for this, since doomimp projectile almost never hits), but Cyb definitely became harder, now has some competitive RL skills :P
User avatar
ZZYZX
le chat du rabbin
 
 
 
Joined: 14 Oct 2012
Location: Ukraine
Discord: ZZYZX#1394
Github ID: jewalky

Re: Small projectile-based monster mod

Postby Turret49 » Wed Jan 20, 2016 8:53 pm

Would it be alright to use this in our own projects? Who should be credited? Also I swear I've seen a thread where someone made some code for an intercepting cyberdemon before, but I can't find it.
Turret49
 
Joined: 29 Aug 2015

Re: Small projectile-based monster mod

Postby Matt » Thu Jan 21, 2016 1:07 am

For what it's worth, mumbles, virtually every HD monster's attack is either so ridiculously fast or so deliberately chaotic, and the player so slow, that this would probably get lost in the noise. Also, the HD cyberdemon already has what could be considered a very, very primitive DECORATE-only take on this. :V

Haven't looked at the code very closely, but would it be possible to let them do this with any target, not just players?
User avatar
Matt
Putting the XD into *xdeath since 2007
 
Joined: 04 Jan 2004
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia

Re: Small projectile-based monster mod

Postby ZZYZX » Thu Jan 21, 2016 3:52 am

Vaecrius wrote:Haven't looked at the code very closely, but would it be possible to let them do this with any target, not just players?

They are doing this with any target, it's just that players have additional checks.

Turret49 wrote:Would it be alright to use this in our own projects? Who should be credited? Also I swear I've seen a thread where someone made some code for an intercepting cyberdemon before, but I can't find it.

--->
ZZYZX wrote:I made this
ZZYZX wrote:Everyone can abuse the code for whatever reasons they want.
User avatar
ZZYZX
le chat du rabbin
 
 
 
Joined: 14 Oct 2012
Location: Ukraine
Discord: ZZYZX#1394
Github ID: jewalky

Re: Small projectile-based monster mod

Postby Henix_Aurorus » Mon Jan 25, 2016 12:14 am

Hmm. This is a thing that makes projectile-wielding monsters much trickier opponents... and I've been working on a mod with more tactical elements.

...hehehe. Don't mind me, I might abuse this just a little.
User avatar
Henix_Aurorus
Destroyer of Worlds. I guess.
 
Joined: 27 Aug 2013
Location: The Endless Void
Discord: #6038

Re: Small projectile-based monster mod

Postby Slax » Mon Jan 25, 2016 12:59 am

This makes projectile opponents !!FUN!!
User avatar
Slax
Saucy.
 
Joined: 19 Oct 2010
Location: Window office.


Return to Gameplay Mods

Who is online

Users browsing this forum: cybermeme, Irozu19, LaughingMan008, Linz, Rex705, Turnock, Zhs2 and 18 guests