Hey guys, im one of the developers over at the SG4BF2 mod.
As some of you may know we have out own kit & Object request & spawning system that is very simaler to PR's
We are looking for information on how PR performs the act of "shoveling or building" an asset that has been deployed for example the FOB from its initial spawned state (construction material) to its final stage (built structure) as we are looking in to the possibility of adding a simmaler system to ours were the teams would be able to build some form of defensive barriar (possibly sandbags) to help defend their positions.
PR Example:
When a FOB is requested and spawned in to the world it is initially displayed as construction material, when a player or players start to shovle and build up the object it switches its apperance to show the final built structure.
Firstly i would like to ask is this accomplished by switching what geometory is being displayed on the objectm if so is this controlled by python.
e.g
Geometory 0: construction stage of the model
Geometory 1: Final built stage of the model
Secondly if the answer to question 1 is yes then is the switching of the geometory's controlled via pythonn based on the objects current health
e.g
when the object is first spawned it has say 10% health
between 10% -49% stage 1 is shown (Construction material)
Between 50% - 100% Stage 2 is shown (Final built stage of the model)
and thirdly how exactly can this be done via python.
Just the command to switch an objects geometory is all i would need if that is how this rocess is performed.
Please feel free to ask any other questions or ask for more information if needed.
Thank you
Kind Regards
TA AKA [SG4BF2 Developer] Rodney McKay
[Python Information Request] Object Spawning Question..
-
Terminal-Access
- Posts: 24
- Joined: 2009-08-13 05:13
-
Spyker2041
- Posts: 1076
- Joined: 2010-03-18 16:25
Re: [Python Information Request] Object Spawning Question..
sorry if this is wrong but iirc the unbuilt fob is a gpo with 0 health on start and the shovel acts as a wrench from vbf2 in the sense that it repairs its health points and once the health is full the fob is built.
In an unrelated matter where in Kent are you from?
In an unrelated matter where in Kent are you from?
-
Terminal-Access
- Posts: 24
- Joined: 2009-08-13 05:13
Re: [Python Information Request] Object Spawning Question..
Strood just over the water from rochesterSpyker2041 wrote:sorry if this is wrong but iirc the unbuilt fob is a gpo with 0 health on start and the shovel acts as a wrench from vbf2 in the sense that it repairs its health points and once the health is full the fob is built.
In an unrelated matter where in Kent are you from?
and yes i do believe your right that the shovels act as wrenches do. i just need to know how the PR devs go about showing the different displays of the object from the unbilt stage tot he bult stage.
-
azreal64
- Posts: 188
- Joined: 2008-02-10 20:21
Re: [Python Information Request] Object Spawning Question..
I'm certainly no expert on the matter, but IIRC, the object is spawned as a wreck, with the destroyed geometry being what you see. Then as you "build" it with the shovel, you are actually repairing the object back to full health. When that happens, it switches to the normal geometry.
Retired Forgotten Hope 2 Developer
-
Terminal-Access
- Posts: 24
- Joined: 2009-08-13 05:13
Re: [Python Information Request] Object Spawning Question..
Thanks for that information however i kinda alredy was going under that assumption im acctually after the coding or know how to make the object switch its geometoryazreal64 wrote:I'm certainly no expert on the matter, but IIRC, the object is spawned as a wreck, with the destroyed geometry being what you see. Then as you "build" it with the shovel, you are actually repairing the object back to full health. When that happens, it switches to the normal geometry.
-
dbzao
- Retired PR Developer
- Posts: 9381
- Joined: 2006-06-08 19:13
Re: [Python Information Request] Object Spawning Question..
We just spawn the object that has 0 or less hitpoints and the wreck model shows up. Then you can repair it with the shovel to get the built geometry. Python is just used to spawn the object.
"There's always one more bug." - Lubarsky's Law of Cybernetic Entomology
-
Terminal-Access
- Posts: 24
- Joined: 2009-08-13 05:13
Re: [Python Information Request] Object Spawning Question..
Ahh cheers easyer than i thought thanx again every one !![R-DEV]dbzao wrote:We just spawn the object that has 0 or less hitpoints and the wreck model shows up. Then you can repair it with the shovel to get the built geometry. Python is just used to spawn the object.
was overthinking the situation lol
Last edited by Terminal-Access on 2011-04-17 04:13, edited 1 time in total.

