Changing an Entity through an upgrade?
9 Mar 2015, 19:39 PM
#1
Posts: 48
I've been wanting to give the T34/76 a T34/85 upgrade. Changing the weapon to the 85mm gun is easy, but it's not really what I want. Can I spawn an "unattached" T34/85 at the upgrading unit's position and then delete the old tank? Is there a way to change the model or directly swap entities?
11 Mar 2015, 09:52 AM
#2
Posts: 621
I'll take you through this, now Im gonna assume the weapon upgrade you made is like the Shermans top gun upgrade, except it replaces the main cannon on the t34/76 so I can skip all the things about how to make the upgrade and stuff etc. (But if you need to make the tutorial from scratch say so)
1. Now goto upgrades and select the upgrade you made for the t34/76 and go under upgrade_bag in that file
2. Next delete anything underneath it and make it empty and then right click on upgrade_bag and select add and then find and select "action\make_dead", this should remove the t34/76 when you finished upgrading it so you're done with getting the t34/76 to disappear
3. Next right-click on upgrade_bag again and select action\spawn_squad
4. After go down to squad_name under "spawn_squad" in the upgrade_bag and put in "attributes\sbps\races\soviet\vehicles\t_34_squad\t_34_85_squad_mp" this will spawn a t34/85 at the location of the selected t34/76 after you have finished doing the upgrade ingame
When you research the upgrade on the tank the t34/76 will vanish and a t34/85 will appear (with full health and no vet)
I have included a picture on how the "upgrade_bag" should look like, what I told you should work as I tested it ingame before and it worked for me so incase it doesnt message me
If you have any questions about anything else ask away
Now the vet and the health carrying over to the t34/85 from the t34/76 I am not sure how to put in yet, as the t34/76 gets deleted and the t34/85 spawns in its place its not one the t34/76 getting an upgrade to its armaments
Also I have a feeling this will make soviet industry overpowered
1. Now goto upgrades and select the upgrade you made for the t34/76 and go under upgrade_bag in that file
2. Next delete anything underneath it and make it empty and then right click on upgrade_bag and select add and then find and select "action\make_dead", this should remove the t34/76 when you finished upgrading it so you're done with getting the t34/76 to disappear
3. Next right-click on upgrade_bag again and select action\spawn_squad
4. After go down to squad_name under "spawn_squad" in the upgrade_bag and put in "attributes\sbps\races\soviet\vehicles\t_34_squad\t_34_85_squad_mp" this will spawn a t34/85 at the location of the selected t34/76 after you have finished doing the upgrade ingame
When you research the upgrade on the tank the t34/76 will vanish and a t34/85 will appear (with full health and no vet)
I have included a picture on how the "upgrade_bag" should look like, what I told you should work as I tested it ingame before and it worked for me so incase it doesnt message me
If you have any questions about anything else ask away
Now the vet and the health carrying over to the t34/85 from the t34/76 I am not sure how to put in yet, as the t34/76 gets deleted and the t34/85 spawns in its place its not one the t34/76 getting an upgrade to its armaments
Also I have a feeling this will make soviet industry overpowered
13 Mar 2015, 15:12 PM
#3
Posts: 48
I'll take you through this, now Im gonna assume the weapon upgrade you made is like the Shermans top gun upgrade, except it replaces the main cannon on the t34/76 so I can skip all the things about how to make the upgrade and stuff etc. (But if you need to make the tutorial from scratch say so)
1. Now goto upgrades and select the upgrade you made for the t34/76 and go under upgrade_bag in that file
2. Next delete anything underneath it and make it empty and then right click on upgrade_bag and select add and then find and select "action\make_dead", this should remove the t34/76 when you finished upgrading it so you're done with getting the t34/76 to disappear
3. Next right-click on upgrade_bag again and select action\spawn_squad
4. After go down to squad_name under "spawn_squad" in the upgrade_bag and put in "attributes\sbps\races\soviet\vehicles\t_34_squad\t_34_85_squad_mp" this will spawn a t34/85 at the location of the selected t34/76 after you have finished doing the upgrade ingame
When you research the upgrade on the tank the t34/76 will vanish and a t34/85 will appear (with full health and no vet)
I have included a picture on how the "upgrade_bag" should look like, what I told you should work as I tested it ingame before and it worked for me so incase it doesnt message me
If you have any questions about anything else ask away
Now the vet and the health carrying over to the t34/85 from the t34/76 I am not sure how to put in yet, as the t34/76 gets deleted and the t34/85 spawns in its place its not one the t34/76 getting an upgrade to its armaments
Also I have a feeling this will make soviet industry overpowered
I was about to say it didn't work as intended (the description said it was abandoned, and when told to move it drove around randomly like Ivan was drunk), but then I noticed I put spawn_entity and not spawn_squad! The ability costs 100 Munitions and 35 Fuel, so I don't think it will be too spamable.
13 Mar 2015, 20:32 PM
#4
Posts: 521
Also I have a feeling this will make soviet industry overpowered
In my minimod STOM, I made T-34/85 the default tank instead of 76 for Soviets at T3 at a 60 higher fuel cost.
In quite a few games, I used Industry, and it was not overpowered. I wasn't particularly successful until I started mixing in SU-85s, and I lost some games like that too. Industry can't maintain an infantry at all, so I think T-34/85 as stock moves Industry from Underpowered to Balanced.
14 Mar 2015, 01:51 AM
#5
Posts: 621
I was about to say it didn't work as intended (the description said it was abandoned, and when told to move it drove around randomly like Ivan was drunk), but then I noticed I put spawn_entity and not spawn_squad! The ability costs 100 Munitions and 35 Fuel, so I don't think it will be too spamable.
It costs 100 munitions and 35 fuel aswell as all the t34/76's vet
Anyways I wish you the best of luck with your mod and I did what you did and put spawn_entity to see for myself and man that was funny the tank was drifting all over the place
16 Mar 2015, 15:20 PM
#6
Posts: 48
It costs 100 munitions and 35 fuel aswell as all the t34/76's vet
Anyways I wish you the best of luck with your mod and I did what you did and put spawn_entity to see for myself and man that was funny the tank was drifting all over the place
I used spawn_squad, and it works better now, but the unit doesn't show up in the unit hotbar or the minimap. There is also no unit icon above the unit, and the description still says that it's abandoned.
17 Oct 2015, 19:41 PM
#7
Posts: 12
I'm trying to do something similar to the OP. I followed the steps mentioned above and got the same results where the unit it spawns is neutral and uncontrollable. How do you make the spawned unit controlled by the person using the upgrade?
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
91 | |||||
854 | |||||
51 | |||||
6 | |||||
2 | |||||
1 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.35057.860+15
- 3.1110614.644+11
- 4.623225.735+1
- 5.276108.719+27
- 6.306114.729+2
- 7.919405.694+3
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1236
Board Info
725 users are online:
725 guests
0 post in the last 24h
5 posts in the last week
33 posts in the last month
5 posts in the last week
33 posts in the last month
Registered members: 49147
Welcome our newest member, TalgatCoh
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, TalgatCoh
Most online: 2043 users on 29 Oct 2023, 01:04 AM