Spoiler:Only the NESW indicator external indicator will move together with player aiming directions.
The "How do I..." Thread
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.
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.
- Ozymandias81
- Posts: 2069
- 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
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 
- 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
Tbh dude, i don't even think the engine supports realtime image rotations which is what you need to do such thing
Re: The "How do I..." Thread
Unless he just makes a shitton of rotation graphics.
Re: The "How do I..." Thread
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.
- Ozymandias81
- Posts: 2069
- 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
@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.
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.
- Ozymandias81
- Posts: 2069
- 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
@Revilution - Seidolon - Kodi
Pm'd to you that compass stuff.
Pm'd to you that compass stuff.
Re: The "How do I..." Thread
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.
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.
- SyntherAugustus
- Posts: 973
- Joined: Tue Jul 15, 2003 5:43 pm
Re: The "How do I..." Thread
Is there a way for the SuperShotgun to gib monsters up close without resorting to splitting the damage or buffing the weapon?
- DoomKrakken
- Posts: 3489
- Joined: Sun Oct 19, 2014 6:45 pm
- Location: Plahnit Urff
- Contact:
Re: The "How do I..." Thread
Nope. Unless you're saying you want to change monster behavior to be able to do that... (regardless, I can't help either way)blackfish wrote:Is there a way for the SuperShotgun to gib monsters up close without resorting to splitting the damage or buffing the weapon?
- 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
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.
Re: The "How do I..." Thread
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.
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.
Re: The "How do I..." Thread
Is there a way to deactivate an actor right after spawning him with ACS scripts?
-
Blue Shadow
- Posts: 5046
- Joined: Sun Nov 14, 2010 12:59 am
Re: The "How do I..." Thread
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].lolwut? wrote:Is there a way to deactivate an actor right after spawning him with ACS scripts?
Re: The "How do I..." Thread
Thank you so much!Blue Shadow wrote: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].lolwut? wrote:Is there a way to deactivate an actor right after spawning him with ACS scripts?
- torridgristle
- Posts: 684
- Joined: Fri Aug 23, 2013 9:34 am
Re: The "How do I..." Thread
I've got two actors in the same place.

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

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




