grodenglaive Posted November 1, 2023 Report Posted November 1, 2023 (edited) The water might put out the fire, but it's Worth a try. I did that for the balcony toss. (edit) it does put out the fire: Edited November 1, 2023 by grodenglaive Quote
grodenglaive Posted November 1, 2023 Report Posted November 1, 2023 (edited) 3 hours ago, Geep said: I suppose you could have the player rather than the guard cause the trigger, then somehow check in the script if the guard is being carried or is otherwise in the right place to kill. Possibly too hard to make that robust. Yup, too hard Edited November 1, 2023 by grodenglaive Quote
MirceaKitsune Posted November 4, 2023 Report Posted November 4, 2023 There's a little something I want to try for which I'll need another obscure trick, might share another mod if I can get it right: How do I attach a func_rotating propeller to an AI, but make it so that it stops rotating once the AI is dead? It must also loop a sound which stops once the AI is disabled. Ideally the rotator can fall off and become a moveable, I don't care if it stays attached as long as it stops spinning when the AI dies or goes unconscious... while attached it should have no collisions. I'd like to avoid a custom script for this one since I hate having to hijack tdm_custom_scripts.script every time: I know there are parameters for AI attachments and loot items to change state when taking down their wearer... like the mask of the manbeast which falls and can be looted once you defeat the owner, there was also a FM with a flaming skull that gets extinguished when the skeleton is killed. But I have no idea if there's any parameters to make an attachment rotate only while the AI is alive. Quote Mods: Builder Blocks minigame | Keypad | Disguises
thebigh Posted November 5, 2023 Report Posted November 5, 2023 Triggering a rotating prop with a target spawnarg makes it stop/start rotating. So you have a couple of options. If the AI doesn't patrol, you can just target him to the prop directly and he'll trigger it when he's killed. This is a holdover from the old DOOM3 days. However, don't use this if he patrols because he'll also trigger the propeller every time he reaches a path_corner. You can also use a hidden kill objective to target the propeller. This is likely only useful if you've only got very few propeller guys in your mission because you'll need a separate objective for each AI. I think you can use the "unbindondeath" spawnarg to make the propeller fall off. 1 Quote My missions: Stand-alone Duncan Lynch series Down and Out on Newford Road the Factory Heist The Wizard's Treasure A House Call The House of deLisle
MirceaKitsune Posted November 5, 2023 Report Posted November 5, 2023 17 hours ago, thebigh said: Triggering a rotating prop with a target spawnarg makes it stop/start rotating. So you have a couple of options. If the AI doesn't patrol, you can just target him to the prop directly and he'll trigger it when he's killed. This is a holdover from the old DOOM3 days. However, don't use this if he patrols because he'll also trigger the propeller every time he reaches a path_corner. You can also use a hidden kill objective to target the propeller. This is likely only useful if you've only got very few propeller guys in your mission because you'll need a separate objective for each AI. I think you can use the "unbindondeath" spawnarg to make the propeller fall off. Thanks. Those methods might not work well unfortunately: Using an objective is overkill as they're meant to be standard characters you dynamically drop to the map and should just work... triggering would have worked but apart from the AI being made to patrol, I don't think it's possible for a def to reference another def as a target since those need to be linked on the map and there's no name for the AI to refer to the attachment by for a trigger. What do attached lights that turn off when the wearer dies use? Actually I think the Automaton has that so I can probably look at its example for the lamp component. It probably wouldn't work for my rotator though, stopping rotation is different from turning off a light... unless the light is also targeted or uses the SR system so I can reach the "use" stimuli via spawnargs after all? Another option would be having my fan as a texture, it's thin enough anyway: I define a version of the material that rotates and one that doesn't then switch the skin. But then the question becomes how does the AI change the skin of an attached entity on death? And a flat surface is uglier anyway I want to be up to date with quality standards so I'll have to think about this. Quote Mods: Builder Blocks minigame | Keypad | Disguises
AxelB Posted November 17, 2023 Report Posted November 17, 2023 Hi, is there a possibility to change the players z-coordinate instantly by using some trigger? I'd like to implement something like 'A crack in the slab' in Dishonored 2, where they just changed the z-value to 'teleport' between two houses exactly over another and so changed to a different 'state' of the house. Thanks Axel Quote
JackFarmer Posted November 17, 2023 Report Posted November 17, 2023 2 hours ago, AxelB said: Hi, is there a possibility to change the players z-coordinate instantly by using some trigger? I'd like to implement something like 'A crack in the slab' in Dishonored 2, where they just changed the z-value to 'teleport' between two houses exactly over another and so changed to a different 'state' of the house. Thanks Axel Have you tried the func_teleport entity? 1 Quote
joebarnin Posted November 17, 2023 Report Posted November 17, 2023 Should I be able to load a save file from another player? My mission is in beta test, and one of the testers has run into an issue. I had them store out a save file, but when I try to load it, TDM hangs (the loading screen just sits there with the bar at 0% progress). We're running the same version, 2.11/64 #10264. Is what I'm trying to do possible? Quote
Geep Posted November 17, 2023 Report Posted November 17, 2023 Maybe you have to duplicate the entire FM environment (the .pk4 if packaged) to get it to work? 1 Quote
joebarnin Posted November 17, 2023 Report Posted November 17, 2023 1 minute ago, Geep said: Maybe you have to duplicate the entire FM environment (the .pk4 if packaged) to get it to work? Forgot to mention, I’m running the same .pk4 as well. Something must be different, I just can’t figure out what. I’ve asked about addons, etc. Quote
Geep Posted November 18, 2023 Report Posted November 18, 2023 Maybe TDM's .ini and .cfg files need to duplicated too? I could imagine if there was some settings mismatch, say, how shadows were handled, that could cause problems. 1 Quote
Geep Posted November 18, 2023 Report Posted November 18, 2023 In thinking about this further, maybe a savefile is just a memory image. In which case ANY difference between the two machines (in OS version, CPU, GPU, amount of RAM, etc.) could prevent portability. If so, this approach to debug is likely a hopeless endeavor. 1 Quote
joebarnin Posted November 18, 2023 Report Posted November 18, 2023 55 minutes ago, Geep said: In thinking about this further, maybe a savefile is just a memory image. In which case ANY difference between the two machines (in OS version, CPU, GPU, amount of RAM, etc.) could prevent portability. If so, this approach to debug is likely a hopeless endeavor. I suspect you are correct. Quote
datiswous Posted November 20, 2023 Report Posted November 20, 2023 On 11/17/2023 at 5:13 PM, joebarnin said: I had them store out a save file, but when I try to load it, TDM hangs (the loading screen just sits there with the bar at 0% progress). Does the console say something? Was the save file renamed (just a hunch)? Quote
Dragofer Posted November 20, 2023 Report Posted November 20, 2023 On 11/4/2023 at 9:34 PM, MirceaKitsune said: How do I attach a func_rotating propeller to an AI, but make it so that it stops rotating once the AI is dead? The most appropriate method would be an on_death script. You can reference the fire elemental for an example. Also, the sole purpose of tdm_custom_scripts.script is to allow mappers to add more .script files to their FM, so there's no reason not to use it. Quote FM: One Step Too Far | FM: Down by the Riverside | FM: Perilous Refuge Co-FM: The Painter's Wife | Co-FM: Written in Stone | Co-FM: Seeking Lady Leicester Dragofer's Stuff | Dragofer's Scripting | A to Z Scripting Guide | Dark Ambient Music & Sound Repository
joebarnin Posted November 28, 2023 Report Posted November 28, 2023 Something I just ran into, so I figured I'd share what I learned. I had an AI doing a path back and forth from A to B to A, etc. It would work fine for a while, and then suddenly he would stop and just stand there. At that point he would never proceed on the path. I cranked up the logging and saw something in darkmod.log about "handle door task" associated with that AI. I realized the problem. I had a dummy door nearby - it is a "door to nowhere" (solid wall behind it). But instead of using a door model, I had cloned a nearby atdm:mover_door and set it to frobable=0 (and removed the handles). That certainly keeps the player from using the door, but apparently it confuses the AI pathfinding. I replaced it with a model door, and now the AI path works fine. Bottom line: always use a model for dummy doors. Sounds obvious, I know. 2 Quote
Frost_Salamander Posted November 28, 2023 Report Posted November 28, 2023 6 minutes ago, joebarnin said: Something I just ran into, so I figured I'd share what I learned. I had an AI doing a path back and forth from A to B to A, etc. It would work fine for a while, and then suddenly he would stop and just stand there. At that point he would never proceed on the path. I cranked up the logging and saw something in darkmod.log about "handle door task" associated with that AI. I realized the problem. I had a dummy door nearby - it is a "door to nowhere" (solid wall behind it). But instead of using a door model, I had cloned a nearby atdm:mover_door and set it to frobable=0 (and removed the handles). That certainly keeps the player from using the door, but apparently it confuses the AI pathfinding. I replaced it with a model door, and now the AI path works fine. Bottom line: always use a model for dummy doors. Sounds obvious, I know. By model door I'm guessing you mean a func_static? That is useful to know. How exactly did you 'crank up the logging'? In High Expectations I had one or two places where the AI pathfinding didn't work and for the life of me I couldn't figure out why. The AI would just stop at a particular spot. The logging might have helped in that case. Quote TDM Community Github: https://github.com/thedarkmodcommunity My fan missions: The Hare in the Snare, Part 1, The Lieutenant Series: In Plain Sight High Expectations Foreign Affairs
datiswous Posted November 28, 2023 Report Posted November 28, 2023 (edited) - Edited November 29, 2023 by datiswous Quote
joebarnin Posted November 28, 2023 Report Posted November 28, 2023 Yes indeed, a func_static. I maxed out the logging with these settings in darkmod.ini: [Debug] LogFile=Darkmod.log LogError=1 LogBegin=1 LogEnd=1 LogDebug=1 LogWarning=1 LogInfo=1 LogClass_INIT=1 LogClass_MISC=1 LogClass_SYSTEM=1 LogClass_FROBBING=1 LogClass_AI=1 LogClass_SOUND=1 LogClass_FUNCTION=1 LogClass_ENTITY=1 LogClass_INVENTORY=1 LogClass_LIGHT=1 LogClass_WEAPON=1 LogClass_MATH=1 LogClass_MOVEMENT=1 LogClass_STIM_RESPONSE=1 LogClass_OBJECTIVES=1 LogClass_DIFFICULTY=1 LogClass_FRAME=1 LogClass_LOCKPICK=1 LogClass_CONVERSATION=1 LogClass_MAINMENU=1 LogClass_AAS=1 LogClass_STATE=1 Way overkill, it creates a massive log file. But I searched for the name of the AI and found a log entry that mentioned something about "HandleDoorTask performing by <guard name>" and a lightbulb went off. 2 Quote
datiswous Posted November 29, 2023 Report Posted November 29, 2023 On 11/28/2023 at 8:57 PM, joebarnin said: Yes indeed, a func_static. Why a func_static instead of just a door model? Quote
joebarnin Posted November 30, 2023 Report Posted November 30, 2023 6 hours ago, datiswous said: Why a func_static instead of just a door model? Models are inserted as func_statics, so basically the same thing? Quote
datiswous Posted November 30, 2023 Report Posted November 30, 2023 Ok, weird, didn't know that. Means that every model is an entity already.. Quote
AluminumHaste Posted November 30, 2023 Report Posted November 30, 2023 Everything except worldspawn is an entity AFAIK 2 Quote I always assumed I'd taste like boot leather.
HMart Posted November 30, 2023 Report Posted November 30, 2023 Afaik worldspawn is also a entity ( at lest in c++ it is a instance of idEntity), the only diference is that is a entity that represents all brush data. Quote
nbohr1more Posted November 30, 2023 Report Posted November 30, 2023 Even though most of "me" lies outside the game, I am an entity. My name is "player". Fortunately, TDM doesn't need to render most of me. 1 2 Quote Please visit TDM's IndieDB site and help promote the mod: http://www.indiedb.com/mods/the-dark-mod (Yeah, shameless promotion... but traffic is traffic folks...)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.