Battlefield Modding Tutorials BFMODS
https://battlefieldmodding.com/ssm/phpBB3/

Ural_ZPU fix in progress?
https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=3840
Page 1 of 1

Author:  ZOOMER [ Fri Feb 15, 2008 7:13 pm ]
Post subject:  Ural_ZPU fix in progress?

DCF, SSM: Object: Ural_ZPU

Broken code from the get-go.
Fix??? Logic of adding the ZPU-4 to the Ural.


I numbered the templates to find the item to remove.

ObjectTemplate.create Bundle UralZPUComplex
0 ObjectTemplate.addTemplate lodUralZPUCockpit
1 ObjectTemplate.addTemplate UralZPUSeat
2 ObjectTemplate.addTemplate UralZPU_Camera
3 ObjectTemplate.addTemplate UralZPU_Entry
4 ObjectTemplate.addTemplate UralZPU_Entry
5 ObjectTemplate.addTemplate UralZPU50Cal_PCO2
6 ObjectTemplate.addTemplate UralZPU_PassengerPCO
7 ObjectTemplate.addTemplate UralZPU_Engine
rem ObjectTemplate.addTemplate UralZPU_Ramp "rem" by dcf
rem ObjectTemplate.setPosition 0/.1/-4.4 "rem" by dcf
rem ObjectTemplate.setRotation 0/0/0 "rem" by dcf
8 ObjectTemplate.addTemplate UralZPUInteriorSteerDummy
9 ObjectTemplate.addTemplate UralZPU_SupplyDepot
10 ObjectTemplate.addTemplate UralZPUExterior2
11 ObjectTemplate.addTemplate UralZPU_PCO2
12 ObjectTemplate.addTemplate Ammobox
13 ObjectTemplate.addTemplate Ammobox
14 ObjectTemplate.addTemplate sandbag_2m_m1
15 ObjectTemplate.addTemplate sandbag_2m_m1
16 ObjectTemplate.addTemplate Truckhorn

1st QUESTION:
So, can I remove template 11 with this code?
ObjectTemplate.Active UralZPUComplex
ObjectTemplate.removeTemplate 11


If this is correct and works SS, then I can move to question 2.

2nd QUESTION:
This works for the Ural5323, the little bird sits in place ready for flight.

rem---AH-6/Ural---
ObjectTemplate.Active Ural_Ramp
ObjectTemplate.addTemplate Nimitz_AH6
ObjectTemplate.setPosition 0/2.05/1.7
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.holdObject 1
rem---AH-6---

But the Ural_ZPU has the Ural Ramp "rem'd out".

QUESTION 3:
Is this correct to add the ramp back in?

ObjectTemplate.Active UralZPUComplex
17 ObjectTemplate.addTemplate UralZPU_Ramp
ObjectTemplate.setPosition 0/.1/-4.4
ObjectTemplate.setRotation 0/0/0

QUESTION 4:
Change the Nimitz Spawner?

ObjectTemplate.ActiveNimitz_AH6
ObjectTemplate.setObjectTemplate 1 ZPU-4
ObjectTemplate.setObjectTemplate 2 ZPU-4
ObjectTemplate.minSpawnDelay 20
ObjectTemplate.maxSpawnDelay 40
ObjectTemplate.TimeToLive 120
ObjectTemplate.Distance 200
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.holdObject 1
ObjectTemplate.MaxNrOfObjectSpawned 1
ObjectTemplate.team 2


QUESTION 5:

We know this works from the Ural...so UralZPU it!

rem---ZPU-4/UralZPU---
ObjectTemplate.Active UralZPU_Ramp
ObjectTemplate.addTemplate Nimitz_AH6
ObjectTemplate.setPosition 0/2.05/1.7
ObjectTemplate.setRotation 0/0/0
ObjectTemplate.holdObject 1

QUESTION 6:

Will the ZPU-4 spawn and stay on the back of the UralZPU?

Comments:
Yea, yea....u could say try it and see....but I'm at work right now.

I want to use the UralZPU instead of the Ural5353 due to the sandbag and ammo addtemplates that show up SS.

Author:  ZOOMER [ Sat Feb 16, 2008 2:15 am ]
Post subject:  Re: Ural_ZPU fix in progress?

NOPE DIDN'T WORK :(

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/