Damaged abandoned vehicles
20 Jun 2014, 17:10 PM
#1

Posts: 92
Hello there, I managed to put abandoned vehicles in my map with the small tutorial on this forum, but my question is, how do I add damaged engine / damaged turret / etc. to the vehicle? I can edit the health in the editor by editing the state, but I'm not sure if that's what I want.
22 Jun 2014, 16:18 PM
#2

Posts: 92
Anyone?
22 Jun 2014, 16:24 PM
#3



Posts: 3421 | Subs: 11
Additional criticals:
Similar to abandoning vehicles with critical hits,
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles, CRIT.VEHICLE_ABANDON, 0)
You can also apply other critical hits before doing to abandon, e.g.
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles, CRIT.VEHICLE_DAMAGE_ENGINE, 0)
A few more critical hits:
CRIT.VEHICLE_DESTROY_ENGINE
CRIT.VEHICLE_DESTROY_MAINGUN
VEHICLE_LIGHT_DAMAGE_ENGINE
About health (health amount in %):
EGroup_SetAvgHealth(eg_vehicles, 0.4)
Similar to abandoning vehicles with critical hits,
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles, CRIT.VEHICLE_ABANDON, 0)
You can also apply other critical hits before doing to abandon, e.g.
Cmd_CriticalHit(World_GetPlayerAt(1), eg_vehicles, CRIT.VEHICLE_DAMAGE_ENGINE, 0)
A few more critical hits:
CRIT.VEHICLE_DESTROY_ENGINE
CRIT.VEHICLE_DESTROY_MAINGUN
VEHICLE_LIGHT_DAMAGE_ENGINE
About health (health amount in %):
EGroup_SetAvgHealth(eg_vehicles, 0.4)
3 Jan 2015, 01:28 AM
#4

Posts: 8
please be a live thread!
i'd like to know what i'm doing wrong because i cant get abandoned AND critical working.
below is what i have, (i have the same abandon and destroy for all 6 vehicles, with their correct names obviously)
i have tried a seperate .scar file and i tried putting it in the ID.scar and they both seem to do the same.
the tank is undamaged and recrewable, but as soon as i add a critical damage the tank gets damaged 90% as indicated but no critical and it is no longer recrewable.
i changed the 0.9 to 0, but it has no effect other than the health bar.
function OnInitID()
-- [[ Markers ]]
-- [[ Squad Groups ]]
-- [[ Entity Groups ]]
eg_luchs = EGroup_CreateIfNotFound("eg_luchs")
eg_m3 = EGroup_CreateIfNotFound("eg_m3")
eg_panzeriv = EGroup_CreateIfNotFound("eg_panzeriv")
eg_panzeriv2 = EGroup_CreateIfNotFound("eg_panzeriv2")
eg_sherman1 = EGroup_CreateIfNotFound("eg_sherman1")
eg_sherman2 = EGroup_CreateIfNotFound("eg_sherman2")
Cmd_CriticalHit(World_GetPlayerAt(1), eg_sherman1, CRIT.VEHICLE_ABANDON, 0.9)
Cmd_CriticalHit(World_GetPlayerAt(1), eg_sherman1, CRIT.VEHICLE_DESTROY_ENGINE, 0.9)
end
Scar_AddInit(OnInit)
end
i'd like to know what i'm doing wrong because i cant get abandoned AND critical working.
below is what i have, (i have the same abandon and destroy for all 6 vehicles, with their correct names obviously)
i have tried a seperate .scar file and i tried putting it in the ID.scar and they both seem to do the same.
the tank is undamaged and recrewable, but as soon as i add a critical damage the tank gets damaged 90% as indicated but no critical and it is no longer recrewable.
i changed the 0.9 to 0, but it has no effect other than the health bar.
function OnInitID()
-- [[ Markers ]]
-- [[ Squad Groups ]]
-- [[ Entity Groups ]]
eg_luchs = EGroup_CreateIfNotFound("eg_luchs")
eg_m3 = EGroup_CreateIfNotFound("eg_m3")
eg_panzeriv = EGroup_CreateIfNotFound("eg_panzeriv")
eg_panzeriv2 = EGroup_CreateIfNotFound("eg_panzeriv2")
eg_sherman1 = EGroup_CreateIfNotFound("eg_sherman1")
eg_sherman2 = EGroup_CreateIfNotFound("eg_sherman2")
Cmd_CriticalHit(World_GetPlayerAt(1), eg_sherman1, CRIT.VEHICLE_ABANDON, 0.9)
Cmd_CriticalHit(World_GetPlayerAt(1), eg_sherman1, CRIT.VEHICLE_DESTROY_ENGINE, 0.9)
end
Scar_AddInit(OnInit)
end
PAGES (1)

1 user is browsing this thread:
1 guest
Livestreams
![]() |
![]() |
![]() |
198 | ||
![]() |
![]() |
![]() |
100 | ||
![]() |
![]() |
![]() |
63 | ||
![]() |
![]() |
![]() |
4 | ||
![]() |
![]() |
![]() |
4 | ||
![]() |
![]() |
![]() |
16 | ||
![]() |
![]() |
![]() |
11 | ||
![]() |
![]() |
![]() |
9 | ||
![]() |
![]() |
![]() |
5 | ||
![]() |
![]() |
![]() |
3 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.42463.871+2
- 2.659233.739+2
- 3.300162.649+1
- 4.286110.722-2
- 5.12644.741-1
- 6.312114.732+8
- 7.193100.659+3
- 8.10829.788+9
- 9.1171650.643+2
- 10.725443.621-2
Replay highlight
VS
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger

Einhoven Country

Honor it
13

Download
1323
Board Info
982 users are online:
982 guests
0 post in the last 24h
2 posts in the last week
42 posts in the last month
2 posts in the last week
42 posts in the last month
Registered members: 51894
Welcome our newest member, Cutherferik
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Cutherferik
Most online: 2043 users on 29 Oct 2023, 01:04 AM