Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Tue Jun 17, 2025 3:14 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Fri Feb 15, 2008 7:13 pm 
Offline

Joined: Wed Oct 11, 2006 4:19 pm
Posts: 211
Location: Northern California
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.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Sat Feb 16, 2008 2:15 am 
Offline

Joined: Wed Oct 11, 2006 4:19 pm
Posts: 211
Location: Northern California
NOPE DIDN'T WORK :(

_________________
Image


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group