In case its not clear enough ill give some context: I want to try doing a mod where player can deploy stuff either via a_spawnitemex or a_firecustommissile. Like sticky bombs, turrets, summons. All assign themselves a TID related to the summoner player number upon a script call in their spawning state. The problem with most mods with summons and such is that if a player dies or disconnects from a multiplayer game or changes class, the stuff is still here. I want to make a script that, similar to TF2 for exemple, if upon a RESPAWN or DISCONNECT, the player is not found anymore or changed class that does not used the currently deployed summons, a script call like thing_destroy or SetActorState triggers on the TID of the summons + the player number on the script. Problem is i am not sure to proceed and if i can even use TID+player number on a TID section of a script to begin with and when i am explained i am not provided much exemples. This is mostly for an experimental prototype i intend to do so check if a certain project will be possible in the first place so if you can help it would be appreciated.So by now i figured that assigning players TIDs is quite useful in doom. But there is one thing i wonder if its even possible to do in the first place.
So i'll start with my question, is it possible to assign a projectile or a player summon a TID with the player number so it can be used to destroy them for a DISCONNECT, RESPAWN or DEATH script?
Like i am really not sure how i would proceed in the first place because when i do so i usually use the default TARGET assignement from projectiles to verify stuff. But for instance, let's say the player shoots a sticky bomb from a gun (with a_firecustommissile or something). The sticky bomb is perhaps assigned a TID followed by a player number. Or perhaps summons a turret/monster. So if a monster/projectile with already said TID has been summoned by said player, the player dies or disconnects from the game, said monster/projectile is destroyed. (So it avoids a clusterfuck and spams if a player leaves or switch player class).
Now question is, is this possible in the first place? Cause i haven't managed to find a lead that could help me get a start at doing a such thing even by checking the wiki. It just says how to assign players TIDs but not if i can make use of them in such circumstances.
EDIT: I forgot to mention, i intend to go for zandronum compatiblity if i end up doing anything.