Zandronum Chat on our Discord Server Get the latest version: 3.1
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001304Zandronum[All Projects] Suggestionpublic2013-03-22 06:102018-09-30 22:19
ReporterMr. Repo 
Assigned ToTorr Samaho 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version1.0 
Target Version3.0Fixed in Version3.0 
Summary0001304: Additional flags for A_SpawnItemEx from ZDoom r4188
DescriptionI am aware with the policy of not backporting anything out of sequence, but I figure I'd give this a whirl anyway just because of how big of a breakthrough I feel this is.

A_SpawnItemEx quite literally yesterday had a few flags added and well, I'll just paste over the descriptions from the ZDoom wiki.

SXF_CLEARCALLERTID - If the actor is spawned successfully, this actor (the one that called A_SpawnItemEx) will have its TID set to 0.
SXF_MULTIPLYSPEED - Multiply the spawned actor's velocity by its Speed property.
SXF_TRANSFERSCALE - Transfers the current Scale factor of the spawning actor to the spawned actor.

Along with the ability to directly assign TIDs to the spawned actor.

Here is the ZDoom forum topic discussing the added flags:
'http://forum.zdoom.org/viewtopic.php?f=18&t=30623 [^]'

Breaking down all 4 points with some of my thoughts of how they could be applied:

SXF_CLEARCALLERTID - This would allow for altered behaviors depending if another actor was successfully summoned. I don't feel I need to go on here and list the specific possibilities with players, inventory, items, monsters, heck even random decorations that could benefit from this. It would make a lot of inconsistent inventory item based coding 100% definite instead of hoping things work out for the best, are always in ideal situations or using hacky ACS for checks. I'm sure almost every single modder could and would benefit from using this alone in some way considering it would guarantee that spawns are always successful.

SXF_MULTIPLYSPEED - From what I can understand, it would be a great way to keep consistency on spawned actors without having to redefine with multiple actors and doing a bunch of inventoryitem checks.

SXF_TRANSFERSCALE - Pure optimization. This would make life easier for larger and smaller actors to take the size of whatever spawned rather than having to make countless new actors that would have the same code over and over with the only difference being the size. Makes things cleaner, more efficient, and like other flags, would allow certain circumstances for varied sized objects to be spawned without having to resort to countless amounts of varied actors.

TIDs - To my knowledge, there is no way to spawn an actor via decorate with a TID unless it's defined in their states. This would allow for greater control and variance without countless lines of redundant code. This also would be great to throw effects onto specific actors depending on what spawned it without having to resort to ACS.

I feel without going too far into specifics that these are good enough reasons to backport this. The possibilities and ease of use just from these few additions are seriously limitless for us modders.
Additional InformationHere's the link to the revision with the extra flags

'http://www.zdoom.org/Changelog/4188/files [^]'
Attached Files

- Relationships
child of 0002172closedTorr Samaho Upgrade GZDoom base to 1.8.6 

-  Notes
User avatar (0013488)
Ru5tK1ng (updater)
2015-09-12 05:33

Well this one took a while, but I was able to test all 3 aforementioned SXF_ flags as well as the TID parameter of A_SpawnItemEX. All of these were tested with 3.0-alpha-150831-1814 both offline and online using monsters as spawns. Each of the flags and TID seemed to work correctly whenever:

Player spawned monster using weapon.
Player spawned monster using inventory item.
Monster spawned Monster.

Issue Community Support
This issue is already marked as resolved.
If you feel that is not the case, please reopen it and explain why.
Supporters: ZzZombo TerminusEst13 het Esum Phobos Toxicity Balrog
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2013-03-22 06:10 Mr. Repo New Issue
2013-10-16 13:15 Dusk Status new => acknowledged
2013-10-16 13:15 Dusk Resolution open => backport later
2015-05-10 22:39 WaTaKiD Target Version => 3.0
2015-05-10 22:39 WaTaKiD Summary Additional flags for A_SpawnEx from ZDoom r4188 => Additional flags for A_SpawnItemEx from ZDoom r4188
2015-05-10 22:39 WaTaKiD Relationship added child of 0002172
2015-08-02 14:30 WaTaKiD Status acknowledged => needs testing
2015-08-02 14:30 WaTaKiD Resolution backport later => open
2015-09-12 05:33 Ru5tK1ng Note Added: 0013488
2015-09-12 11:39 Dusk Status needs testing => resolved
2015-09-12 11:39 Dusk Fixed in Version => 3.0
2015-09-12 11:39 Dusk Resolution open => fixed
2015-09-12 11:39 Dusk Assigned To => Torr Samaho
2018-09-30 22:19 Blzut3 Status resolved => closed






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2024 MantisBT Team
Powered by Mantis Bugtracker