Battlefield Modding Tutorials BFMODS https://battlefieldmodding.com/ssm/phpBB3/ |
|
exploding planes https://battlefieldmodding.com/ssm/phpBB3/viewtopic.php?f=3&t=4977 |
Page 1 of 3 |
Author: | Malestrom [ Mon Jun 01, 2009 3:30 am ] |
Post subject: | exploding planes |
Hey guys I added this post as a single topic because there were no replies to the other 'add on' I placed 2 stangs in my allied base on Battle of the Bulge They dont touch anything or bounce However they smoke, flame and blowup eventually They respawn quickly but id sure like to avoid the exploding stang thing lol! code: ----------------------------------- spawn template code: ----------------------------- ObjectTemplate.create ObjectSpawner DiveBomberSpawner ObjectTemplate.setObjectTemplate 2 mustang ObjectTemplate.setObjectTemplate 1 stuka ObjectTemplate.MinSpawnDelay 40 ObjectTemplate.MaxSpawnDelay 80 ObjectTemplate.SpawnDelayAtStart 0 ObjectTemplate.TimeToLive 45 ObjectTemplate.Distance 40 ObjectTemplate.DamageWhenLost 10 ObjectTemplate.create ObjectSpawner FighterSpawner ObjectTemplate.setObjectTemplate 2 mustang ObjectTemplate.setObjectTemplate 1 bf109 ObjectTemplate.MinSpawnDelay 40 ObjectTemplate.MaxSpawnDelay 80 ObjectTemplate.SpawnDelayAtStart 0 ObjectTemplate.TimeToLive 45 ObjectTemplate.Distance 40 ObjectTemplate.DamageWhenLost 10 --------------------------------------- Object code: --------------------------------------- rem *** Add Mustang 1 Allied Base *** Object.create FighterSpawner Object.absolutePosition 706.23/22.23/203 Object.rotation 50/9.66/0 Object.setTeam 2 rem rem rem *** Add Mustang 2 Allied Base *** Object.create FighterSpawner Object.absolutePosition 730.23/22.23/203 Object.rotation 10/9.66/0 Object.setTeam 2 rem ------------------------------------------- I have a Stuka and a bf109 on the Axis with no explosive attitude. These are outside the base Thoughts pls? Thanks guys ![]() |
Author: | Iced Earth [ Mon Jun 01, 2009 3:34 am ] |
Post subject: | Re: exploding planes |
Strange. I'll add the code to a 'clean' bulge and see what I get. |
Author: | Why Two Kay [ Mon Jun 01, 2009 3:34 am ] |
Post subject: | Re: exploding planes |
The best I can think of is that the timeToLive part is being activated. What happens is that once the vehicle is "Distance" away from its spawn location and "TimeToLive" has passed, and the vehicle is unoccupied, the plane will start to take critical damage, which means is starts to lose health and die. This is a good thing normally, since when people abandon jeeps or tanks in the middle of nowhere, they will eventually die and respawn after the respawn time has passed. However, it seems like your spawns here are activating for no reason. One way to solve this is to set distance to 999 or timeToLive to 9999. However, then they will not have the behavior I described earlier. With planes, this is less of an issue, because rarely do the planes survive while sitting out in the middle of nowhere, people either bail out and let it crash, or they just get killed. If that doesn't fix it, then something else is wrong. |
Author: | Iced Earth [ Mon Jun 01, 2009 3:55 am ] |
Post subject: | Re: exploding planes |
Author: | Malestrom [ Wed Jun 03, 2009 2:55 am ] |
Post subject: | Re: exploding planes |
thanks guys Ummm team 3? lol another discussion.... ![]() |
Author: | Anarchy [ Wed Jun 03, 2009 6:19 am ] |
Post subject: | Re: exploding planes |
Both planes have the same absolutePosition, you are spawning them on top of eachother, this be why they are exploding on spawn. EDIT: No they don't. |
Author: | Sheppard [ Wed Jun 03, 2009 9:53 am ] |
Post subject: | Re: exploding planes |
Dude, 706.23 =/= 730.23 ![]() |
Author: | Anarchy [ Wed Jun 03, 2009 3:24 pm ] |
Post subject: | Re: exploding planes |
Oh my bad. Or... Oh my eyes |
Page 1 of 3 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |