Ghost Item marker

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
HellBlade64
Forum Regular
Posts: 109
Joined: Mon Aug 13, 2012 9:03 pm
Contact:

Ghost Item marker

#1

Post by HellBlade64 » Tue Sep 16, 2025 2:43 am

I'm working on a class-based pickup for one of my mods, and what I am trying to accomplish is this:

When the item is picked up, it leaves behind a "ghosted" (translucent) version of the item that can't bet picked up on the spot where on the map it was placed and picked up from and after a certain amount of time, the ghosted version gets replaced with the original non-ghosted item pickup. Basically a visual respawn timer for items. The whole reason being that item itself is a weapon box that gives the player a special weapon unique to their class and, on the mod's UV and Nightmare-adjacent difficulties, items don't respawn.

Otherwise, I'd also like to know how Samsara's class-detecting weapon pickups work, too, as an alternative solution.

User avatar
Fused
Contributor
Posts: 684
Joined: Sat Nov 09, 2013 9:47 am
Location: Netherlands
Contact:

Re: Ghost Item marker

#2

Post by Fused » Wed Sep 17, 2025 6:59 am

Have an actor that when picked up changes to a state where it is a ghost and can no longer be picked up. On pickup this actor should instead give the weapon and not itself, the actor always remains on the ground. Also call an ACS script that works the timer and you can use whatever respawn timer cvars you need here. When the timer elapses, SetActorState back to the initial state.
My mods
Image Image

My socials
Image Image

Post Reply