Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Wed Dec 11, 2019 9:36 am

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 25 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Scaling Issues
PostPosted: Fri Jul 27, 2007 3:19 pm 
Offline

Joined: Tue Jan 30, 2007 10:58 pm
Posts: 329
Location: www.TKO.clanservers.com
NOTE: This does not work for SSM... this is for CSM.
Alright so here's a new problem I've run into... I have multiple bridges on my newest map, they're called "O_ROPEBRIDGE01_m1" but the name isn't really important. Losnar and I have been trying to figure out a way to scale just 2 of the bridges (one to "1/1/1.5" and the other to "1/1/1.75") but so far we haven't had much luck. Keep in mind we have to maintain the normal scale for the rest of the bridges...

In one attempt Los actually managed to get the two bridges to scale correctly, but the collision detection wasn't working properly... the moment you stepped out on to the bridge you'd fall right through. YES we did have collision set to 1! Here's the code that Los was working with... he created 2 new bridges:

Code:
rem ******* newropebridge
GeometryTemplate.create StandardMesh newropebridge
GeometryTemplate.file O_ROPEBRIDGE01_m1

ObjectTemplate.create SimpleObject newropebridge
ObjectTemplate.geometry newropebridge
ObjectTemplate.HasCollisionPhysics 1

objecttemplate.active newropebridge
geometrytemplate.scale 1/1/1.5

rem ******* newropebridge2
GeometryTemplate.create StandardMesh newropebridge2
GeometryTemplate.file O_ROPEBRIDGE01_m1

ObjectTemplate.create SimpleObject newropebridge2
ObjectTemplate.geometry newropebridge2
ObjectTemplate.HasCollisionPhysics 1

objecttemplate.active newropebridge2
geometrytemplate.scale 1/1/1.75

So any ideas people?

_________________
[TKO] Tactical Knock Out : IP Address: 8.2.122.210 : Good Luck Dying
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Scaling Issues
PostPosted: Fri Jul 27, 2007 3:49 pm 
Offline

Joined: Mon Nov 15, 2004 12:00 am
Posts: 696
Location: Germany, US Depot
First, lets clean up code, as there is no need for active commands ...

Code:
ObjectTemplate.create SimpleObject newropebridge
ObjectTemplate.geometry newropebridge
ObjectTemplate.HasCollisionPhysics 1

ObjectTemplate.create SimpleObject newropebridge2
ObjectTemplate.geometry newropebridge2
ObjectTemplate.HasCollisionPhysics 1

rem *Mesh* newropebridge
GeometryTemplate.create StandardMesh newropebridge
GeometryTemplate.file O_ROPEBRIDGE01_m1
geometrytemplate.scale 1/1/1.5

rem *Mesh* newropebridge2
GeometryTemplate.create StandardMesh newropebridge2
GeometryTemplate.file O_ROPEBRIDGE01_m1
geometrytemplate.scale 1/1/1.75


Theory:

The scale command might just affect the Lod, not the COL1 and COL2.

_________________
ImageImageImageImage
Pferdefriedhof.net --= Home of the Airwolf =--


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Scaling Issues
PostPosted: Fri Jul 27, 2007 4:43 pm 
Offline

Joined: Thu Apr 19, 2007 7:38 pm
Posts: 177
I tried to answer in the direction you looked but i've just deleted the whole thing...

I just went Ho chi minh trail to find the RopeBridge thing in staticobjects.con
Then i saw the light!
I noticed the trees and all vegetation are scaled in that .con file with this code:Object.geometry.scale
Ok... so i tried this with the bridge and it worked perfect! It should work with any static meshes 8-)

Code:
Object.create O_ROPEBRIDGE01
Object.absolutePosition xxx/xxx/xxx
Object.rotation xxx/xxx/xxx
Object.geometry.scale 1/1/1.5


So easy sometimes!!! ;-)

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Scaling Issues
PostPosted: Fri Jul 27, 2007 6:04 pm 
Offline
User avatar

Joined: Thu Oct 19, 2006 5:03 am
Posts: 1209
BoBD@N!tr¤ wrote:
Code:
Object.geometry.scale 1/1/1.5





Nice, I've never seen that code anywhere! I'll give it a shot.

_________________
Image

Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Scaling Issues
PostPosted: Fri Jul 27, 2007 7:52 pm 
Offline

Joined: Thu Apr 19, 2007 7:38 pm
Posts: 177
Yep! told you i saw that opening the staticobject.con from HCMT

Code:
rem
rem ***  ***
rem
Object.create F_vine02_M1
Object.absolutePosition 517.801/37.4112/931.381
Object.rotation 126.072/-5.00258e-009/9.88312e-006
Object.geometry.scale 1/0.433/0.946
rem
rem ***  ***
rem
Object.create F_vine02_M1
Object.absolutePosition 521.7/37.1232/928.541
Object.rotation 126.072/2.12008e-006/14.5804
Object.geometry.scale 1/1/1.45
rem
rem ***  ***
rem
Object.create F_vine02_M1
Object.absolutePosition 523.1/27.6631/851.151
Object.rotation 179.37/1.30276e-010/0.0395746
Object.geometry.scale 1/0.4555/1.621
.....and so on...32 like this....trees or bushes...dunno


Object.geometry.scale...gotta try this on any object!!! :D

_________________
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Scaling Issues
PostPosted: Fri Jul 27, 2007 7:58 pm 
Offline

Joined: Tue Jan 30, 2007 10:58 pm
Posts: 329
Location: www.TKO.clanservers.com
Interesting... any chance that this Object.geometry.scale would work server-side? Seems we haven't encountered the code before so I figured I'd ask the noob question!

_________________
[TKO] Tactical Knock Out : IP Address: 8.2.122.210 : Good Luck Dying
Image


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Scaling Issues
PostPosted: Fri Jul 27, 2007 8:47 pm 
Offline

Joined: Thu Jun 15, 2006 9:36 am
Posts: 2015
It works allright.
But as everything else that have with static objets to do.
You can't see the change.

_________________
In the beginning everybody was a SSM NooB.
BFV SSM on server 66.55.142.243
Server Homepage http://forum.griffinclan.org


Top
 Profile Send private message E-mail  
 
 Post subject: Re: Scaling Issues
PostPosted: Fri Jul 27, 2007 9:05 pm 
Offline
User avatar

Joined: Thu Oct 19, 2006 5:03 am
Posts: 1209
:cry:

limitations suck

_________________
Image

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.  [ 25 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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:
cron
Powered by phpBB® Forum Software © phpBB Group