Rotating Starting Base Building?
![avatar of Kasarov](/uploads/avatar/14837.jpg?updated=1682774534)
![Senior Modmaker Badge](/images/badges/badge_SENIOR_MODMAKER.png)
Posts: 422 | Subs: 2
![avatar of wouren](/images/no_av.png)
![Senior Social Media Manager Badge](/images/badges/badge_SENIOR_MEDIA_MANAGER.png)
Posts: 1281 | Subs: 3
![avatar of Kasarov](/uploads/avatar/14837.jpg?updated=1682774534)
![Senior Modmaker Badge](/images/badges/badge_SENIOR_MODMAKER.png)
Posts: 422 | Subs: 2
![avatar of Mr.Smith](/uploads/avatar/17585.jpg?updated=1459425421)
Posts: 2636 | Subs: 17
Say, you want to fix the Soviet HQ.
- Create a clone of the HQ
- Make the original HQ invulnerable and invisible
- Give an action-apply to the original HQ to spawn the cloned HQ with the right rotation
- - -
If spawn entity has no trigger for setting initial rotation, you can try the following:
- Give the cloned HQ a very high rotation speed (over 9000)
- Give the cloned HQ an ability that would force it to rotate to face a specific point (e.g., an artillery attack that fires 0 shells)
- Test whether the ability works
- To make this happen automatically, make the original HQ trigger a victor-target on the specific ability, at the desired direction
- Once the ability has finished, give the cloned HQ a permanent rotation modifier of 0
I did something like this here, to tweak British 25-pounder initial rotation. You should be setting the victor-ability action in the action_apply_ext for your original soviet HQ.
https://github.com/smithereenscoh2/qol_mod
![avatar of Mr.Smith](/uploads/avatar/17585.jpg?updated=1459425421)
Posts: 2636 | Subs: 17
- Do NOT create a cloned copy; instead work directly on the original HQ
- Give it a high rotation rate, and make it trigger a victor target ability on itself
- At the end of the ability, reset the rotation rate to 0 permanently
The reason why you might want to avoid cloning the HQ is that the annihilation victory conditions (if you care about them) are probably tied to the original HQ.
![avatar of SneakEye](/uploads/avatar/20401.jpg?updated=1467362299)
![Senior Modmaker Badge](/images/badges/badge_SENIOR_MODMAKER.png)
Posts: 817 | Subs: 5
![:) :)](/images/Smileys/smile.gif)
![avatar of Foxhound634](/images/avatars/puma.png?updated=1399022854)
Posts: 73
![avatar of Mr.Smith](/uploads/avatar/17585.jpg?updated=1459425421)
Posts: 2636 | Subs: 17
The victor_target_action just has an abilities_to_use list, so what do i put there?
You have to create a custom ability for your base building, which you will supply to the victor_target_action
How do i determine the direction of the victor_target_action?
The direction of the victor target is always from the shooter to the entity that invoked victor target.
To make this work:
- Your building should spawn a custom entity (which you will create); in the spawn entity parameters you specify the desired position of the spawned entity relative to the spawner
- The spawned entity calls victor target
- after a while, the spawned entity should despawn itself
![avatar of Foxhound634](/images/avatars/puma.png?updated=1399022854)
Posts: 73
1) The building that needs to be rotated. The building has a combat_ext with a flak_38_mm_preface weapon.
1A) ...and i've given the building a moving_ext as i've been told that's necessary. Set the rotation rate to 1000.
1B) ...and the game will crash if you then ALSO have set the building to be shot-blocking (i think that's the one, at least) in the line_of_sight_ext...so i've set that to false.
2) I then have a pre-facer entity that spawns in action_apply with an offset from that building. This pre-facer is basically an invisible instant demo charge, where the explosion_ext is causing a victor_target_action to be called (see below).
3) Said victor_target action needs an ability, which i have. Said ability is targeted, and causes an artillery_attack with 0 salvos, using hardpoint 1, face_to_target true and where weapon 1, 2 and 3 is said to null.
Yet, it still doesn't work. What am i missing?
![avatar of RagnarTheGamer](/uploads/avatar/23878.png?updated=1552767479)
![Master Modmaker Badge](/images/badges/badge_MASTER_MODMAKER.png)
Posts: 317
it is possible to rotate the base but its only possible via SCAR.
![avatar of Foxhound634](/images/avatars/puma.png?updated=1399022854)
Posts: 73
![avatar of RagnarTheGamer](/uploads/avatar/23878.png?updated=1552767479)
![Master Modmaker Badge](/images/badges/badge_MASTER_MODMAKER.png)
Posts: 317
Hm, does such a script already exist for various rotations? If not, how would I go about implementing that?
For that, you would need to create a Win Condition pack. I don't think a pre-made script exists so you would have to make it your self.
Regards,
RagnarTheGamer
![down](/images/buttons/down_arrow.png)
Livestreams
![]() |
![]() |
![]() |
14 | ||
![]() |
![]() |
![]() |
12 | ||
![]() |
![]() |
![]() |
4 | ||
![]() |
![]() |
![]() |
3 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 | ||
![]() |
![]() |
![]() |
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.41662.870+14
- 2.659233.739+2
- 3.299158.654+3
- 4.286110.722-2
- 5.309114.730+5
- 6.12243.739-1
- 7.193100.659+3
- 8.10829.788+9
- 9.370283.567+3
- 10.1171650.643+2
Replay highlight
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger
![Einhoven Country](/images/maps/4p_enhoven_country.jpg)
![Honor](/images/buttons/HONOR_icon.png)
![Download](/images/buttons/DOWNLOAD_icon.png)
Board Info
19 posts in the last week
45 posts in the last month
Welcome our newest member, Wnukowskit
Most online: 2043 users on 29 Oct 2023, 01:04 AM