ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Creating Immobile Objects from Script?

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  12:30:58  25 March 2014
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
Messages: 454
Creating Immobile Objects from Script?

Is there any way to create an object that still has collision (ie you can walk on it), but isn't affected by gravity or other forces? The catch is that it can't be baked into the level, it has to be spawnable via script in a dynamic position. I've tried a bunch of classes that seemed relevant but none of them have satisfied both conditions.
  13:27:58  25 March 2014
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
Messages: 454
Update! I found that you can use packet_utils to set the "fixed_bones" parameter with a list of the object's bones, which will make it more or less glued in place. The only problem is that if you're clever you can still move it by crouching underneath, standing up and hopping a bunch. Eventually it will just float up to accommodate you.
So, this method is not quite perfect. If there's no other way about it then I think I can just work with this, but if anyone knows of a better solution, please let me know.
  15:15:11  25 March 2014
profilee-mailreply Message URLTo the Top
r_populik
Senior Resident
 

 
On forum: 11/06/2011
Messages: 213
Did you try to set a larger value for mass of the main bone in bones parameters in AE SDK?
  15:43:29  25 March 2014
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
 

Message edited by:
TKGP
03/25/2014 15:45:37
Messages: 454
No, although I did experiment with various ph_mass values in the object's ltx file. Setting it really high didn't make it any harder to push from underneath, just a lot more prone to killing you on contact. Not sure if doing it from the SDK would be any different.
Also for anyone curious, the whole point of this is constructing procedural environments. Besides the aforementioned issues it's going pretty well! Screenshot of the progress so far: http://i.imgur.com/cPJGBQH.jpg
  15:57:53  25 March 2014
profilee-mailreply Message URLTo the Top
Vintar
a bit of this and a lot of that
(Resident)

 

 
On forum: 08/08/2008
 

Message edited by:
Vintar
03/25/2014 15:59:33
Messages: 6349
I don't think its possible. The only truly static object is one placed on map as static object and then the map compiled, AFAIK. I say this because many times we tried to spawn big things to block passages instead of always compiling a map when changes are made, but alas it never fully works, sometimes the object starts bouncing around even.
  16:15:27  25 March 2014
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
Messages: 454
@Vintar
Ah, I was kind of afraid that would be the answer. Indeed, although setting a fixed bone mostly works, like you said if any objects intersect they will push each other around and generally murder anyone in the area.
Maybe Lost Alpha can support this kind of thing better.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.