Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SUGGESTION] Xonotic and NetRadiant: Start Animated Model with trigger event?

#1
As threadname already mentioned, I want to know if there's a possibility to play/stop an animated model (md3) by touching a trigger? Or even telling the md3 model on which frame to start?

Thanks in advance
[Image: signature.php] [Image: DVlpo.png]
Reply

#2
I'd do it with changing the models spawnflag to 16 with a func_spawn, just like I change models on Newtonian Nightmare on the even of destroying the generators (=destroying an invisible entity, that when dies, triggers off other entities.)
[Image: 561.png]
"One should strive to achieve; not sit in bitter regret."
Reply

#3
unfortunately I can't analyse Newtonian Nightmare until tomorrow night, but what I understand is by destroying the generator you made one (the not-broken generator) invisible and the other (broken generator) visible? Sounds interesting indeed, gonna check that out soon heh thanks Mr.Brutail

But still, I need to know if there's a way to manipulate the frame from a gamemodel somehow, manupulating like where to start, stop the animation, restarting again etc.

Thanks in advance!

Edit: I was thinking about to design a map like a music video, this is why I need to know
[Image: signature.php] [Image: DVlpo.png]
Reply

#4
Haha, actually, no, I lied! Or rather, I've totally forgotten what the hell I've done there Big Grin It's an entity hell, I'll rather describe.
I was right about the func_breakable part. You actually damage that, the generator is only for the looks. However, when you kill the func_breakable, it has:

mdl_dead : optional replacement model to show when destroyed

So the model switching is handled here. It also has:

mdl : particle effect name to show when destroyed

set, so there's a nice explosion played too. Now, the actual generator model is a misc_gamemodel, that is attached to the func_breakable with "target" key - this way when the func is killed, the model is removed too, and placed back, when the func respawns (with a chained trigger_multiple the fires off multiple trigger_relays, that has a delay key of 60s), so no spawnflags magics where used there. Like I said, entity hell Big Grin Have fun figuring out the trigger routes Big Grin

I've looked a little further in the descriptions of NetRadiant. There's now an entity called:

misc_breakablemodel
This is a model which can be damaged.
Once all health is consumed it'll disappear and trigger the targeted entity/entities.
When triggered, it resets to full health, and unbreaks.

When I made NN this entity was not avaible, so you might be able to skip the trigger brush part entirely. However, it might have some quirks, so better ask divVerent about those.
For animation, you can use the "frame" or "_frame" keys on misc_model and misc_gamemodel entities. misc_clientmodel and misc_breakablemodel doesn't have the key in their descriptions, however this doesn't automatically means it won't work - might be only undocumented, you have to try.
Now playing actual animations might be tricky. For md3 models, DP certainly can only use the the animation frame, but iirc it can't animate (fun, lesser known fact: the xonotic launchramp model has multiple frames, so by setting those you can get different angles of the launcher Big Grin).
The only case when animated models were shown on a map iirc was on the ONS map of Nexuiz (can't recall it's name atm.), and those were zym models, and Morphed made them, so on this issue you should poke him and ask for directions.
[Image: 561.png]
"One should strive to achieve; not sit in bitter regret."
Reply

#5
I don't see anything in the code for animation control using triggers. I thought there was a trigger that could modify entity fields but I was mistaken -- it's actually target_spawn that I was thinking about and I don't think it's of any use here.

This could be a good feature request.

Also, keep in mind that the bg music doesn't start at the same time for every client. Maybe use a music trigger. I hope it'll work fine for you. func_pointparticles' bgmscript works great because it's done clientside. gamemodel animation unfortunately isn't.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Question [NEEDS INFO] how to make the model smoother? (netradiant) Beylet 2 1,519 06-20-2022, 11:50 PM
Last Post: Beylet
  [SOLVED] Mapping: Move permeable wall upon trigger stingray300k 5 2,259 05-26-2021, 10:19 AM
Last Post: stingray300k
  [NEED HELP] Netradiant, xonotic-mapping-support and maps dir? Gwlanbzh 1 1,676 02-02-2021, 06:57 PM
Last Post: AriosJentu
Heart [SOLVED] BUG IN NETRADIANT Kotangens 5 3,172 12-06-2020, 08:53 AM
Last Post: Julius
  [NEED HELP] cant start the game/ session lock problem skyghost47 1 3,791 10-24-2020, 11:50 PM
Last Post: BuddyFriendGuy
  [NEED HELP] I REPEAT I need Help with Netradiant Taplio 4 3,769 09-23-2020, 12:05 AM
Last Post: fabzor3
  [NEED HELP] Need old rifle model(solved) Kotangens 8 3,897 08-27-2020, 01:42 AM
Last Post: Kotangens
  [SOLVED] how can i get defrag entities in netradiant? bananovenc 5 4,508 01-03-2020, 11:31 AM
Last Post: SpiKe
  [SOLVED] how do i set up netradiant bananovenc 2 3,701 12-27-2019, 02:04 PM
Last Post: bananovenc
Question [NEED HELP] can't build netradiant (SOLVED) bananovenc 7 5,849 12-25-2019, 03:34 PM
Last Post: illwieckz

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-