[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
Battlefield Modding Tutorials BFMODS • View topic - Completely Disabling Vechicles

Battlefield Modding Tutorials BFMODS

Battlefield Modding Tutorials
It is currently Thu Apr 18, 2024 5:27 pm

All times are UTC




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 26 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Tue Sep 15, 2009 2:03 pm 
Offline

Joined: Tue Sep 08, 2009 10:35 am
Posts: 14
Yeah I could care less about using the vehicles, I'm just just using their wreck meshes as "static meshes" that I am adding to an infantry map. Last time I tried using dissabling moblie physics I used this line "ObjectTemplate.hasMobilePhysics 0" it made my server crash, but I'll see if I can get it to work. Is there something wrong the way I typed that ?


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Sep 15, 2009 7:24 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
Try
ObjectTemplate.sethasMobilePhysics 0
if you use ObjectTemplate.Active

According to the MDT it doesn't matter if you use "set" or not, but I recall some issues in the past where only one of them worked. Basic rule back then was: Use "set" if you change code by "Active"ating the object, don't use set if you create new code (CSM). Not quite sure if it works, however.

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Sep 15, 2009 8:20 pm 
Offline

Joined: Tue Sep 08, 2009 10:35 am
Posts: 14


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Sep 15, 2009 9:21 pm 
Offline
User avatar

Joined: Sat May 10, 2008 3:00 am
Posts: 1877
Holdobject goes on the spawner, not the object.

_________________
Image


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Sep 15, 2009 10:34 pm 
Offline
User avatar

Joined: Thu Feb 05, 2009 7:54 pm
Posts: 487
Location: Germany
The reason for the error message is because you now have an object without mobilephysics, but that still has all the physic elements like springs (which define where, how much and when the vehicle has friction with ground) attached. This apparently causes BF42 to go into lockdown, as it's pretty impossible to calculate physical parameters with an object you define to ignore physics ;) . Would be the same if you tried to attach springs to a building...

To make this work you would have to removetemplate all the physic elements too, I fear...
But first, try holdobject 1 in the correct place. As long as nobody seriously bumps the wreck, it should stay immobile. Ramming it with vehicles or heavy weapons will probably initiate the jittering again...

_________________
Kampagne XI - Vereinte Achsenmächte


xFire: wgpsenshi


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Sep 15, 2009 10:51 pm 
Offline
User avatar

Joined: Sun Dec 31, 2006 12:13 am
Posts: 2027
Yeah...there's really no way to have a wreck touching a building without it shaking like a crack addict.


Top
 Profile Send private message E-mail  
 
PostPosted: Tue Sep 15, 2009 11:18 pm 
Offline

Joined: Thu Mar 15, 2007 2:22 pm
Posts: 1253


Last edited by freddy on Wed Sep 16, 2009 2:06 am, edited 5 times in total.

Top
 Profile Send private message E-mail  
 
PostPosted: Tue Sep 15, 2009 11:19 pm 
Offline

Joined: Tue Sep 08, 2009 10:35 am
Posts: 14
DUH! lol as you can see I am doing a lot of guessing at what goes where. Yeah putting ObjectTemplate.HoldObject 1 in the right spot will hold the object just above the ground until it blows up then it's back to it's normal jitter wreck lol. ObjectTemplate.hasResponsePhysics 0 stops you from being able to push the wreck models all over the map with other vehicles.

"ObjectTemplate.hasMobilePhysics 0" or "ObjectTemplate.sethasMobilePhysics 0" is what I can't get to work. Should it be ObjectTemplate.setMobilePhysics 0 ? "sethas" doesn't sound right together ? idk

So if I figure out how to remove all the springs/extras etc. then I set the MobilePhysics 0 my server shouldn't crash with it set at 0 ? And this might fix all the jitters ?

****************
Also I was trying to add this code to a vehicle so that it wouldn't show up on the mini map but it won't work any ideas where I need to place the code ?
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_none" (it's the mini map icon from the "lcvp" Patrol Boat)

I remember years ago I was able to use this code client side to hide a secret car in a map I made.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 62 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