Zandronum Chat @ irc.zandronum.com
#zandronum
Get the latest version: 2.1.2
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003152Zandronum[All Projects] Suggestionpublic2017-06-07 05:312017-07-16 22:13
ReporterMichaelis 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version3.0-beta 
Target VersionFixed in Version 
Summary0003152: Backport RGF_NOSIGHT for A_RadiusGive
DescriptionI want to give every monster on the map an inventory item.

With RGF_NOSIGHT, I just call A_RadiusGive from the center of map with huge radius, and know for sure that all monsters any relevant were covered.

Without RGF_NOSIGHT, I spawn thousands of actors in a grid in every 128x128 square that A_RadiusGive the item. Naturally, this is extremely slow, and still from 0 to 25% of monsters don't get covered.
Steps To Reproduce1. Run rgf_nosight.wad, map01
2. On map01, there's a replaced blue torch.
3. Wait for 2 seconds until it becomes green.
4. Imp should die.
Attached Files? file icon rgf_nosight.wad [^] (3,344 bytes) 2017-06-07 05:31

- Relationships

-  Notes
User avatar (0018043)
Konda (reporter)
2017-07-15 20:17

It would be nice if this was backported before 4.0. It's an essential tool for any kind of mod that wants to access all actors on the map and do something with them, like executing an ACS script that affects all weapons or monsters on the map.
User avatar (0018049)
Ivan (reporter)
2017-07-16 14:04

For a workaround, give all monsters a TID within a previously known range and iterate through them. That's going to be way faster than using A_RadiusGive because there won't be distance checks involved.
User avatar (0018052)
Konda (reporter)
2017-07-16 22:13

Ivan's solution relies on replacing all actors that would be otherwise affected by A_RadiusGive. The advantage of A_RadiusGive is that it gives you access to any actor, which enables support for actors introduced by another mod, and you have no control over other mods' actor definitions unless you create a patch mod that specifically targets mods on which to enable support.

Issue Community Support
Only registered users can voice their support. Click here to register, or here to log in.
Supporters: Michaelis dbthanatos Korshun DoodGuy EnsaladaDeTomate Konda TheMisterCat
Opponents: No one explicitly opposes this issue yet.

- Issue History
Date Modified Username Field Change
2017-06-07 05:31 Michaelis New Issue
2017-06-07 05:31 Michaelis File Added: rgf_nosight.wad
2017-07-15 20:17 Konda Note Added: 0018043
2017-07-16 14:04 Ivan Note Added: 0018049
2017-07-16 22:13 Konda Note Added: 0018052






Questions or other issues? Contact Us.

Links


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker