Phobos-developers / Phobos

Ares-compatible C&C Red Alert 2: Yuri's Revenge engine extension
GNU Lesser General Public License v3.0
300 stars 95 forks source link

[Minor] Shield respawn anim and weapon #1381

Open Coronia opened 2 months ago

Coronia commented 2 months ago

In rulesmd.ini:

[SOMESHIELDTYPE]                            ; ShieldType name
Respawn.Anims=                              ; list of Animation
Respawn.Weapon=                             ; WeaponType

[SOMEWARHEAD]                               ; WarheadType
Shield.Respawn.Anims=                       ; list of Animation
Shield.Respawn.Weapon=                      ; WeaponType
github-actions[bot] commented 2 months ago

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

Starkku commented 2 months ago

I propose to add a common template/composite tag like Promotable to which people can assign whatever they want - anim, weapon or whatever. The point is that we can reuse this template anywhere and easily add a lot of events, all consistently.

And this template does what exactly?

Metadorius commented 2 months ago

I propose to add a common template/composite tag like Promotable to which people can assign whatever they want - anim, weapon or whatever. The point is that we can reuse this template anywhere and easily add a lot of events, all consistently.

And this template does what exactly?

Almost-one-liner for modders to add whatever amounts of event handling possibilities for any "event" in a consistent fashion, like I do have those in techno attachment and I can just use the template. Further on it can be expanded to add whatever event handling possibilities if needed. image

Metadorius commented 1 week ago

@Coronia do you need any assistance on what I proposed? You can refer to #1304 for an example of the new template and bother me here or in Discord to help.

Coronia commented 1 week ago

Yeah I would be appreciated if there's a demo for this. I've looked into the pull request but not quite got it yet. I take it that we should define MultiFlag for weapon and use it here, but still not sure how to do it correctly. If there's an existed template for weapon it would be better, and if my understanding is wrong please correct me.