Base captured, vehicles blow up and spawn new team vehicles?
Base captured, vehicles blow up and spawn new team vehicles?
- Allied team captures an Axis base with vehicles in it.
- Axis vehicles explode when the base is captured.
- Allied vehicles spawn.
I see it in BF: Bad Company 1 and 2, how the previous team's vehicles explode to spawn the new team's vehicles.
How can I do this?
- Axis vehicles explode when the base is captured.
- Allied vehicles spawn.
I see it in BF: Bad Company 1 and 2, how the previous team's vehicles explode to spawn the new team's vehicles.
How can I do this?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
- Dennis|8749236
- Posts: 239
- Joined: Sun Nov 29, 2009 6:02 am
- Location: Earth
- Contact:
Re: Base captured, vehicles blow up and spawn new team vehic
i think is this code:
Object.IsSaveable boolean
in BF2 is
ObjectTemplate.isNotSaveable 1
Object.IsSaveable boolean
in BF2 is
ObjectTemplate.isNotSaveable 1
What is the meaning of Life?? (Don't think about it!)
- Apache Thunder
- Posts: 1210
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Base captured, vehicles blow up and spawn new team vehic
None of those codes will do much of anything.8749236 wrote:i think is this code:
Object.IsSaveable boolean
in BF2 is
ObjectTemplate.isNotSaveable 1
The best way I can think of is to set up a spawn for each control point. This spawn would spawn a invisible PCO that would have a death bubble on it. The PCO would have a short lifespan of about 10 seconds or less but no less then 2 seconds to ensure it works properly. The PCO would have a death bubble on it that is team specific and effects all vehicles in the area of the control point. If the CP changes teams, then the old PCO would soon die and be replaced by the other team's PCO with corresponding death bubble to wipe out the previous team's vehicles.
I have cameras in your head!
Re: Base captured, vehicles blow up and spawn new team vehic
What if you get into an opposing teams vehicle at their base before your team mate then caps it? Would it not blow you up too?
- Apache Thunder
- Posts: 1210
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Base captured, vehicles blow up and spawn new team vehic
Death bubbles are team specific I believe. The team status of a vehicle may change if a different team member then what the vehicle original spawned as entered it. Thus it shouldn't present a issue. I don't recall having any problems driving a T72 onto the repair pad on the old clan server I used to play on years ago. (they had server side death bubbles on the repair pads to stop camping in the bases)
But my coding theory should be tested to be sure. But I'm sure the team status of a vehicle is updated regardless of it's spawn settings once a player enters it.
But my coding theory should be tested to be sure. But I'm sure the team status of a vehicle is updated regardless of it's spawn settings once a player enters it.
I have cameras in your head!
- Dennis|8749236
- Posts: 239
- Joined: Sun Nov 29, 2009 6:02 am
- Location: Earth
- Contact:
Re: Base captured, vehicles blow up and spawn new team vehic
i think the death bubble should works good, but if other vehicle went onto that bubble, that vehicle may explode too..
But, i have found a problem in Server, many server use death bubble to prevent Base Camping or raping, if a player use a vehicle to enter that radius, the player will die but the vehicle will stay there and cannot be used(if u enter it u will die immediatly), but it still have collision physics..
But, i have found a problem in Server, many server use death bubble to prevent Base Camping or raping, if a player use a vehicle to enter that radius, the player will die but the vehicle will stay there and cannot be used(if u enter it u will die immediatly), but it still have collision physics..
What is the meaning of Life?? (Don't think about it!)
Re: Base captured, vehicles blow up and spawn new team vehic
Instead of a "death bubble" SupplyDepot you can set your invisible PCO to cause a huge ExplosionDamage (like 9999) in a very small ExplosionRadius (like 0.2.) Use either TimeToLive or CriticalDamage to make it die as soon as it spawns and make it spawn on exactly same coordinates as the target vehicle. Still, this will kill anyone who happens to stand exactly at the spawner coordinates at the time of capture, but you can experiment with ExplosionRadius to minimize the risk.
dzn.battlefield.pl - my Bf1942 modding website
- Apache Thunder
- Posts: 1210
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Base captured, vehicles blow up and spawn new team vehic
Code: Select all
ObjectTemplate.explosionMaterial
Thus, I do not recommend this method of exploding PCOs to clear out control point vehicles.
I have cameras in your head!
Re: Base captured, vehicles blow up and spawn new team vehic
In short, it's another idea that would take twenty butt loads of work to look nice and work.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Re: Base captured, vehicles blow up and spawn new team vehic
You can use a Boolean with the Engine?8749236 wrote:Object.IsSaveable boolean