Selfdestructing vehicles - Freecam - Bomb damage

Ask questions, discuss ideas, get answers
Scoop M
Posts: 73
Joined: Wed Oct 31, 2012 2:49 am

Selfdestructing vehicles - Freecam - Bomb damage

Post by Scoop M »

All SSM

Vanilla BF1942


# 1 - Is it possible to make a vehicle selfdestruct after x amount of time, even if it’s occupied by a player ? It could be instant destruction or damage over time.

Example : I’d like the M10 to always start selfdestruct five minutes after it has spawned. Even if it has a player in it.

# 2 – Freecam ..... The default speed is one, is it possible to make it faster ? And what about :

game.freeCameraBaseSpeed
game.freeCameraSlowSpeed
game.freeCameraFastSpeed

can that be implemented too ?

# 3 – I’d like maps such as Battle of Britain and Coral Sea to last longer. I’ve heard that it isn’t possible to increase hitpoints for factories, radar stations and carriers, etc. Are there other solutions ? I’ve read that bomb damage against those can me reduced instead. Can somebody explain how ?
User avatar
fo0k
Posts: 1433
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by fo0k »

game.freecamerabasespeed 1 will give you default speed. changing the 1 value higher or lower will change the speed
Scoop M
Posts: 73
Joined: Wed Oct 31, 2012 2:49 am

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by Scoop M »

Where in the RFA files is game.freeCameraBaseSpeed located ?
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by freddy »

Code: Select all

game.freeCameraBaseSpeed 20
game.freeCameraSlowSpeed 0.0001
game.freeCameraFastSpeed 50
Apache Thunder wrote:For those who can't find the freecam files in the vanilla files you can find them in the Objects\MOVE_FILES\ folder under "FreeCamera".

Code: Select all

ObjectTemplate.Active DiveBomberBomb
ObjectTemplate.minDamage 0.85
ObjectTemplate.distToStartLoseDamage 1
ObjectTemplate.distToMinDamage 2
Pigauchiu
Posts: 31
Joined: Fri Mar 30, 2012 1:00 pm

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by Pigauchiu »

#1 - ObjectTemplate.criticalDamage (max hp of any vehicle + 1) makes the vehicle always start self-destroy.
ObjectTemplate.hpLostWhileCriticalDamage manipulates the speed of losing hp. Its unit is per second. Do the math yourself for desired time.

#3 - for longer BoB, consider spawning factories and radar stations. They are normal PCOs which use normal spawners.

for coral sea, how about 2 carriers for each side?
http://bfmods.com/viewtopic.php?f=43&t=1271
Scoop M
Posts: 73
Joined: Wed Oct 31, 2012 2:49 am

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by Scoop M »

# 1 Is it possible to delay the auto-sefldestruct, so that the vehicle takes no damage in the beginning, and then after x amount of time starts taking damage, or instantly blows up ?

# 2 The default key for freecam speed x 10 is [left control]. Is it possible to to reassign this key to another ?
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by Swaffy »

Scoop M wrote:Is it possible to delay the auto-sefldestruct, so that the vehicle takes no damage in the beginning, and then after x amount of time starts taking damage, or instantly blows up?
Spawners do this for vehicles, but the vehicle has to be unoccupied.
Scoop M wrote:The default key for freecam speed x 10 is [left control]. Is it possible to to reassign this key to another ?
You would have to change it in the menu. But I doubt you can do it in the way you're asking.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by freddy »

there is

Code: Select all

ObjectTemplate.selfDestroy 1
http://www.battlefieldsingleplayer.info ... recid=3973

but i dont know if its any good for vehicles or how to apply it
Scoop M
Posts: 73
Joined: Wed Oct 31, 2012 2:49 am

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by Scoop M »

If that code can be set to work, it could be perfect if it could be linked with a timer in some way.

What I'm looking for, is a mechanism that after x amount of time starts dealing damage to a vehicle or just instantly destroys it.

Example : M10 that behaves normally, then after 5 minutes suddenly starts taking damage or instantly destroys.
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Re: Selfdestructing vehicles - Freecam - Bomb damage

Post by freddy »

lol code :)

Code: Select all

ObjectTemplate.fireDelay
ObjectTemplate.autoFire 1
objectTemplate.disableWhenFired
objectTemplate.destroyVehicleWhenNoAmmo
objectTemplate.startUnloaded 
edit: 1 more

Code: Select all

ObjectTemplate.destroyOnExit 1
edit2

Code: Select all

objectTemplate.exitSpeedMod 90
Post Reply