The "How do I..." Thread

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Ozymandias81
Posts: 2067
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: The "How do I..." Thread

Post by Ozymandias81 »

OK, this will be quite hard for me to explain but I really need it for future projects of mine: is there a way to get mouse aiming coords in order to "transfer" them for a somewhat functional compass? ATM, these will be the HUD graphics I'll use. Any aid will be extremely appreciated, I'm not a super-script master :-(
Spoiler:
Only the NESW indicator external indicator will move together with player aiming directions.
User avatar
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Somewhere in the future
Contact:

Re: The "How do I..." Thread

Post by Zanieon »

Tbh dude, i don't even think the engine supports realtime image rotations which is what you need to do such thing
PWAD Pete
Posts: 466
Joined: Wed Oct 09, 2013 11:11 pm

Re: The "How do I..." Thread

Post by PWAD Pete »

Unless he just makes a shitton of rotation graphics.
User avatar
kodi
 
 
Posts: 1355
Joined: Mon May 06, 2013 8:02 am

Re: The "How do I..." Thread

Post by kodi »

You could use math functions to rotate hudmessages saying N,E,S,W around a common axis though. Or use a horizontal compass strip like oblivion.
User avatar
Ozymandias81
Posts: 2067
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: The "How do I..." Thread

Post by Ozymandias81 »

@Revilution & Seidolon
I've got an idea for how to fit such graphics: NSEW letters instead of quadrant. Operation Overlord inspired.

@Kodi
Maths are the answer, but Elder Scrolls 3-4-5 style could be another neat way to do.

Anyway when I finish to code such compass, I'll PM to all of you above done stuff. Just a way to thank you for suggestions of yours. :-)
User avatar
Ozymandias81
Posts: 2067
Joined: Thu Jul 04, 2013 8:01 am
Graphics Processor: nVidia with Vulkan support
Location: Mount Olympus, Mars
Contact:

Re: The "How do I..." Thread

Post by Ozymandias81 »

@Revilution - Seidolon - Kodi

Pm'd to you that compass stuff. :-)
User avatar
amv2k9
Posts: 2178
Joined: Sun Jan 10, 2010 4:05 pm
Location: Southern California

Re: The "How do I..." Thread

Post by amv2k9 »

I've been making a weapon that fires proximity mines that can also be remotely detonated. The gun fired a projectile that SXF_SETMASTER-spawned thus making the player the spawned actor's master) a friendly monster that sought potential targets. The master/child relationship stuff was used to handle the remotely-detonating mechanic side of things, as well as other stuff. This system never worked right in a variety of ways; namely, sometimes the mines would instantly detonate upon getting near a dead corpse, and the corpse would be credited with dealing the damage. Also the mine could give items to its master... but not take them.

So, I'm looking to simplify the system; making the projectile that is fired also the mine that detonates, and I'm wondering if A_RearrangePointers is the solution. Being a projectile, the firer is the target by default, and I need it to seek monsters instead. I haven't seen examples of A_RearrangePointers being used for something like this, or being used period outside of the wiki, and I'm not sure of what would be involved.
User avatar
SyntherAugustus
Posts: 973
Joined: Tue Jul 15, 2003 5:43 pm

Re: The "How do I..." Thread

Post by SyntherAugustus »

Is there a way for the SuperShotgun to gib monsters up close without resorting to splitting the damage or buffing the weapon?
User avatar
DoomKrakken
Posts: 3489
Joined: Sun Oct 19, 2014 6:45 pm
Location: Plahnit Urff
Contact:

Re: The "How do I..." Thread

Post by DoomKrakken »

blackfish wrote:Is there a way for the SuperShotgun to gib monsters up close without resorting to splitting the damage or buffing the weapon?
Nope. Unless you're saying you want to change monster behavior to be able to do that... (regardless, I can't help either way)
User avatar
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Somewhere in the future
Contact:

Re: The "How do I..." Thread

Post by Zanieon »

the best way is change what the weapon will shot when pointblanking like what i did to Shotgun in Hunter's Moon, trying a A_JumpIfCloser on monsters doesn't work properly on Zandronum and i personally think it's a bit more hacky than simply change the weapon behavior.
D2JK
Posts: 545
Joined: Sat Aug 30, 2014 8:21 am

Re: The "How do I..." Thread

Post by D2JK »

amv2k9:

I've made sort of prox mine projectiles, which begin to hover in place after hitting the floor once, and wait for a monster to walk into them.

I don't know what approaches exactly you have tried so far, but have you thought of the prox mine (projectile) constantly checking the target (player) inventory for a detonation item, given with the alt-fire of a weapon, for example? Tip: you can use a dummy powerup inventory item to make use of the powerup.duration property; this way you don't have to take away the item manually.
User avatar
lolwut?
Posts: 143
Joined: Sun Mar 14, 2010 3:41 am

Re: The "How do I..." Thread

Post by lolwut? »

Is there a way to deactivate an actor right after spawning him with ACS scripts?
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: The "How do I..." Thread

Post by Blue Shadow »

lolwut? wrote:Is there a way to deactivate an actor right after spawning him with ACS scripts?
When spawning the actor, make sure to assign it a TID (the spawn functions/specials allow you to do that), then pass that TID to [wiki]Thing_Deactivate[/wiki].
User avatar
lolwut?
Posts: 143
Joined: Sun Mar 14, 2010 3:41 am

Re: The "How do I..." Thread

Post by lolwut? »

Blue Shadow wrote:
lolwut? wrote:Is there a way to deactivate an actor right after spawning him with ACS scripts?
When spawning the actor, make sure to assign it a TID (the spawn functions/specials allow you to do that), then pass that TID to [wiki]Thing_Deactivate[/wiki].
Thank you so much!
User avatar
torridgristle
Posts: 684
Joined: Fri Aug 23, 2013 9:34 am

Re: The "How do I..." Thread

Post by torridgristle »

I've got two actors in the same place.

Image

Can I set one to always appear in front of the other?
Locked

Return to “Editing (Archive)”