damage bubble effect on child object

Ask questions, discuss ideas, get answers
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: damage bubble effect on child object

Post by fo0k »

I have been spending waaay to long trying to figure this out..

Help! :)

so I have a car and have added a 'timer' object to it. It sits on the dashboard and basically consists of 4 objectspawners which are invisible but have damage effects that are actually the numbers on the clock..

each number is a pco.. (just with no actual mesh... only the damage effects are visible)


How it works..
so for the seconds.. at 100% health the object displays a simple mesh of a number 0.. then as health drops to 90% it displays a 1... 80% a 2... and so on until it dies and respawns instantly to show a 0 again..

The same principle applies to the other 3 number slots.. one for 10 second intervals.. one for minutes.. and one for 10minute intervals.. a Pic of the clock..

Image

currently if I setup each number PCO to loose health due to critical health it works fine.. the clock ticks perfectly

e.g. (for seconds)

Code: Select all

ObjectTemplate.maxhitpoints 10000
ObjectTemplate.criticalDamage 10000
ObjectTemplate.hpLostWhileCriticalDamage 1000
this causes the seconds object to loose health at a rate of 10% per second meaning the numbers change every second.. and it works. The same priciple work for the 10seconds, minutes and 10minutes numbers (but with a tweak to the maxHP's/Critical damage so they change at the right time..)


problem.

what I want is for the car to spawn.. and the clock to just sit at 00:00 until the driver passes over the start line. Then it should start ticking! then when the player passes the finish line (and exits the damage bubble) the clock stops exactly where it is.. showing the finish time.

To do this I have setup a damage bubble to enclose the entire race track.. The bubble is setup to damage the number PCO's at a rate of 1000 HP's per second.. so basically resulting in the same effect as the critical damage technique.
but.. they do not loose health.. and I cannot figure out why.. Hopefully missing something obvious.

Below is the code for the car, and the damage bubble object and the clock object.

the car has the 4 timer objects addtemplated to it.. and the clock object contains the pco's and the spawner templates.

Hopefully you can see what Im trying to do and can spot whats going on. If I add the main car to the list of vehicles in the damage bubble it kills it no problem so this part works.. just not on my clock PCO's


The Car: (clock code begins with 'ObjectTemplate.Addtemplate face')

Code: Select all


rem *** 911RSR ***
ObjectTemplate.create PlayerControlObject 911RSR
ObjectTemplate.NameTagOffset 0.3/-0.2/0
ObjectTemplate.setNetworkableInfo 911RSRBodyInfo
ObjectTemplate.saveInSeparateFile 1
ObjectTemplate.cullRadiusScale 5
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.explosionRadius 8
ObjectTemplate.explosionDamage 5
ObjectTemplate.damageFromWater 0
ObjectTemplate.drag 1.5
ObjectTemplate.mass 2370
ObjectTemplate.hascollisionphysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.hasArmor 1
ObjectTemplate.speedMod 0.4
ObjectTemplate.exitTimer 0.75
ObjectTemplate.hitpoints 200
ObjectTemplate.maxhitpoints 200
ObjectTemplate.material 45
ObjectTemplate.criticalDamage 6
ObjectTemplate.hpLostWhileCriticalDamage 2
ObjectTemplate.explosionForceMod 10
ObjectTemplate.hpLostWhileUpSideDown 5
ObjectTemplate.hpLostWhileDamageFromWater 5
ObjectTemplate.addArmorEffect 30 e_willyDamage 0/1/-2.4802
ObjectTemplate.addArmorEffect 10 e_willyFire 0/0.6489/1.4461
ObjectTemplate.addArmorEffect 0 e_pneuwreckgibs 0/0/0
ObjectTemplate.addArmorEffect 0 e_ExplGas 0/1.2/0
ObjectTemplate.addArmorEffect -1 WaterWaterExplosion  0/0/0
ObjectTemplate.aiTemplate 911RSR
ObjectTemplate.submarineData 0.02 0.03 5 0 0 1 10
ObjectTemplate.setPcoId 0
ObjectTemplate.addPcoPosId 1
ObjectTemplate.sonarPos 1
ObjectTemplate.setSoldierExitLocation -1.05031/0.444133/0.102154 0/0/0
ObjectTemplate.GUIIndex 26
ObjectTemplate.setVehicleIcon "Vehicle/Icon_willy.tga"
ObjectTemplate.setVehicleIconPos 40/79
ObjectTemplate.setNumberOfWeaponIcons 0
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTScoutCar
ObjectTemplate.setToolTipType TTScoutCar
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_common_16x16.tga"
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.Addtemplate DestroyerSonar
ObjectTemplate.Addtemplate lod911RSR


rem *** lod911RSR ***
ObjectTemplate.create LodObject lod911RSR
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hascollisionphysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.lodselector 911RSRLodSelector
ObjectTemplate.Addtemplate 911RSRComplex
ObjectTemplate.Addtemplate 911RSRSimple
ObjectTemplate.Addtemplate 911RSRWreck


rem *** 911RSRComplex ***
ObjectTemplate.create bundle 911RSRComplex
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hascollisionphysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.Addtemplate lod911RSRCockpit



ObjectTemplate.Addtemplate 911RSRCamera
ObjectTemplate.setPosition -0.391055/1.0525/-0.235844





rem **Hi Back**
rem ObjectTemplate.setPosition 0/20/0
rem ObjectTemplate.setRotation 0/50/0

rem **Original**
rem correct ObjectTemplate.setPosition -0.391055/1.0525/-0.235844
rem ***








ObjectTemplate.Addtemplate face
ObjectTemplate.setPosition 0.0796/0.8567/0.6041
ObjectTemplate.setRotation 0.0/-90/0
ObjectTemplate.Addtemplate colon
ObjectTemplate.setPosition 0.0796/0.8567/0.6041
ObjectTemplate.setRotation 0.0/-90/0
ObjectTemplate.Addtemplate digital_secondsSpawner
ObjectTemplate.setPosition 0.1796/0.8567/0.6041
ObjectTemplate.setRotation 0.0/-90/0
ObjectTemplate.Addtemplate digital_10secondsSpawner
ObjectTemplate.setPosition 0.1296/0.8567/0.6041
ObjectTemplate.setRotation 0.0/-90/0
ObjectTemplate.Addtemplate digital_minutesSpawner
ObjectTemplate.setPosition 0.0296/0.8567/0.6041
ObjectTemplate.setRotation 0.0/-90/0
ObjectTemplate.Addtemplate digital_10minutesSpawner
ObjectTemplate.setPosition -0.0204/0.8567/0.6041
ObjectTemplate.setRotation 0.0/-90/0



















ObjectTemplate.Addtemplate 911RSRSeat
ObjectTemplate.setPosition -0.394116/0.445478/0.0194857
ObjectTemplate.setRotation 0.0/-12.8022/0.0
ObjectTemplate.Addtemplate 911RSREntry
ObjectTemplate.setPosition -1.05031/0.444133/0.102154
ObjectTemplate.Addtemplate 911RSRPassengerPCO
ObjectTemplate.Addtemplate 911RSREngine
ObjectTemplate.Addtemplate miuraSteeringDummy
ObjectTemplate.setPosition -0.379156/0.548269/1.00733
ObjectTemplate.setRotation 0.0/14.657/0.0
ObjectTemplate.Addtemplate e_WaterFront
ObjectTemplate.setPosition 0.0/0.0/3.4
ObjectTemplate.Addtemplate e_WaterBackamphibious
ObjectTemplate.setPosition 0.0/0.0/-4.0



rem *** lod911RSRCockpit ***
ObjectTemplate.create LodObject lod911RSRCockpit
ObjectTemplate.lodselector 911RSRCockpitSelector1
ObjectTemplate.Addtemplate 911RSRCockpitExternal
ObjectTemplate.setRandomGeometries 43
ObjectTemplate.Addtemplate 911RSRCockpitInternal



ObjectTemplate.create simpleobject 911RSRCockpitExternal1
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull1

ObjectTemplate.create simpleobject 911RSRCockpitExternal2
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull2

ObjectTemplate.create simpleobject 911RSRCockpitExternal3
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull3

ObjectTemplate.create simpleobject 911RSRCockpitExternal4
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull4

ObjectTemplate.create simpleobject 911RSRCockpitExternal5
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull5

ObjectTemplate.create simpleobject 911RSRCockpitExternal6
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull6

ObjectTemplate.create simpleobject 911RSRCockpitExternal7
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull7

ObjectTemplate.create simpleobject 911RSRCockpitExternal8
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull8

ObjectTemplate.create simpleobject 911RSRCockpitExternal9
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull9

ObjectTemplate.create simpleobject 911RSRCockpitExternal10
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull10

ObjectTemplate.create simpleobject 911RSRCockpitExternal11
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull11

ObjectTemplate.create simpleobject 911RSRCockpitExternal12
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull12

ObjectTemplate.create simpleobject 911RSRCockpitExternal13
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull13

ObjectTemplate.create simpleobject 911RSRCockpitExternal14
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull14

ObjectTemplate.create simpleobject 911RSRCockpitExternal15
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull15

ObjectTemplate.create simpleobject 911RSRCockpitExternal16
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull16

ObjectTemplate.create simpleobject 911RSRCockpitExternal17
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull17

ObjectTemplate.create simpleobject 911RSRCockpitExternal18
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull18

ObjectTemplate.create simpleobject 911RSRCockpitExternal19
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull19

ObjectTemplate.create simpleobject 911RSRCockpitExternal20
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull20

ObjectTemplate.create simpleobject 911RSRCockpitExternal21
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull21

ObjectTemplate.create simpleobject 911RSRCockpitExternal22
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull22

ObjectTemplate.create simpleobject 911RSRCockpitExternal23
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull23

ObjectTemplate.create simpleobject 911RSRCockpitExternal24
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull24

ObjectTemplate.create simpleobject 911RSRCockpitExternal25
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull25

ObjectTemplate.create simpleobject 911RSRCockpitExternal26
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull26

ObjectTemplate.create simpleobject 911RSRCockpitExternal27
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull27

ObjectTemplate.create simpleobject 911RSRCockpitExternal28
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull28

ObjectTemplate.create simpleobject 911RSRCockpitExternal29
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull29

ObjectTemplate.create simpleobject 911RSRCockpitExternal30
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull30

ObjectTemplate.create simpleobject 911RSRCockpitExternal31
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull31

ObjectTemplate.create simpleobject 911RSRCockpitExternal32
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull32

ObjectTemplate.create simpleobject 911RSRCockpitExternal33
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull33

ObjectTemplate.create simpleobject 911RSRCockpitExternal34
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull34

ObjectTemplate.create simpleobject 911RSRCockpitExternal35
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull35

ObjectTemplate.create simpleobject 911RSRCockpitExternal36
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull36

ObjectTemplate.create simpleobject 911RSRCockpitExternal37
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull37

ObjectTemplate.create simpleobject 911RSRCockpitExternal38
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull38

ObjectTemplate.create simpleobject 911RSRCockpitExternal39
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull39

ObjectTemplate.create simpleobject 911RSRCockpitExternal40
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull40

ObjectTemplate.create simpleobject 911RSRCockpitExternal41
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull41

ObjectTemplate.create simpleobject 911RSRCockpitExternal42
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull42

ObjectTemplate.create simpleobject 911RSRCockpitExternal43
ObjectTemplate.hasDynamicShadow 1
ObjectTemplate.geometry 911RSR_Hull43






rem *** 911RSRCockpitInternal ***
ObjectTemplate.create bundle 911RSRCockpitInternal
ObjectTemplate.geometry 911RSR_Hul_indoor










rem *** 911RSRCamera ***
ObjectTemplate.create Camera 911RSRCamera
ObjectTemplate.setMinRotation -24/-12/0
ObjectTemplate.setMaxRotation 24/6/0
ObjectTemplate.setPivotPosition 0/0/0
ObjectTemplate.setMaxSpeed 20/20/0
ObjectTemplate.setAcceleration 1000/1000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY
ObjectTemplate.ToggleMouseLook 1
ObjectTemplate.OutsideHudOffset 0/0/2.5


rem *** 911RSRSeat ***
ObjectTemplate.create SeatObject 911RSRSeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier


rem *** 911RSREntry ***
ObjectTemplate.create EntryPoint 911RSREntry
ObjectTemplate.setEntryRadius 1.5


rem *** 911RSRPassengerPCO ***
ObjectTemplate.create PlayerControlObject 911RSRPassengerPCO
ObjectTemplate.NameTagOffset -0.3/-0.2/0
ObjectTemplate.setNetworkableInfo 911RSRBodyInfo
ObjectTemplate.aiTemplate 911RSRPassenger
ObjectTemplate.setSoldierExitLocation 1.05631/0.444133/0.0093476 0/0/0
ObjectTemplate.GUIIndex 53
ObjectTemplate.setVehicleIcon "Vehicle/Icon_willy.tga"
ObjectTemplate.setVehicleIconPos 45/79
ObjectTemplate.setNumberOfWeaponIcons 0
ObjectTemplate.setCrossHairType CHTNone
ObjectTemplate.setVehicleCategory VCLand
ObjectTemplate.setVehicleType VTScoutCar
ObjectTemplate.setToolTipType TTScoutCar
ObjectTemplate.setMinimapIcon "Minimap/minimap_icon_common_16x16.tga"
ObjectTemplate.hasRestrictedExit 1
ObjectTemplate.Addtemplate 911RSREntry
ObjectTemplate.setPosition 1.05631/0.444133/0.0093476
ObjectTemplate.Addtemplate 911RSRCameraPassenger
ObjectTemplate.setPosition 0.3911/1.0525/-0.235796
ObjectTemplate.Addtemplate 911RSRPassengerSeat
ObjectTemplate.setPosition 0.3941/0.445478/0.0195027
ObjectTemplate.setRotation 0.0/-12.802/0.0


rem *** 911RSRPassengerSeat ***
ObjectTemplate.create SeatObject 911RSRPassengerSeat
ObjectTemplate.seatFlags c_SeatShowFullBodySoldier
ObjectTemplate.seatAnimationUpperBody Ub_PassengerInWilly
ObjectTemplate.seatAnimationLowerBody Lb_PassengerInWilly


rem *** 911RSRCameraPassenger ***
ObjectTemplate.create Camera 911RSRCameraPassenger
ObjectTemplate.setMinRotation -24/-12/0
ObjectTemplate.setMaxRotation 24/6/0
ObjectTemplate.setPivotPosition 0/0/0
ObjectTemplate.setMaxSpeed 20/20/0
ObjectTemplate.setAcceleration 1000/1000/0
ObjectTemplate.setInputToYaw c_PIMouseLookX
ObjectTemplate.setInputToPitch c_PIMouseLookY


rem *** 911RSRFrontWheelRight ***
ObjectTemplate.create RotationalBundle 911RSRFrontWheelRight
ObjectTemplate.setNetworkableInfo 911RSRSteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hascollisionphysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.setMinRotation -30/0/0
ObjectTemplate.setMaxRotation 30/0/0
ObjectTemplate.setMaxSpeed 200/0/0
ObjectTemplate.setAcceleration 200/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.Addtemplate 911RSRFrontSpringRight
ObjectTemplate.setPosition 0.142358/0.0/0.0


rem *** 911RSRFrontWheelLeft ***
ObjectTemplate.create RotationalBundle 911RSRFrontWheelLeft
ObjectTemplate.setNetworkableInfo 911RSRSteeringInfo
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hascollisionphysics 1
ObjectTemplate.hasResponsePhysics 1
ObjectTemplate.setMinRotation -30/0/0
ObjectTemplate.setMaxRotation 30/0/0
ObjectTemplate.setMaxSpeed 200/0/0
ObjectTemplate.setAcceleration 200/0/0
ObjectTemplate.setInputToYaw c_PIYaw
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.Addtemplate 911RSRFrontSpringLeft
ObjectTemplate.setPosition -0.14573/0.0/-8.1423e-007





rem *** 911RSRSimple ***
ObjectTemplate.create simpleobject 911RSRSimple
ObjectTemplate.geometry 911RSR_Hull1


rem *** 911RSRWreck ***
ObjectTemplate.create simpleobject 911RSRWreck
ObjectTemplate.geometry 911RSR_Hull_Wreck


rem *** 911RSRCockpitSelector1 ***
LodSelectorTemplate.create DistCompareSelector 911RSRCockpitSelector1
LodSelectorTemplate.addLodDistance 3.05
LodSelectorTemplate.addLodComparison 0.5


rem *** 911RSRLodSelector ***
LodSelectorTemplate.create DistCompareSelector2 911RSRLodSelector
LodSelectorTemplate.hasDestroyedLod 1
LodSelectorTemplate.addLodDistance 135

The clock

Code: Select all

rem

ObjectTemplate.create simpleobject face
ObjectTemplate.geometry face
ObjectTemplate.create simpleobject colon
ObjectTemplate.geometry colon

rem
rem -------------------------------------
rem -------------------------------------
rem -SECONDS-----------------------------
rem -------------------------------------
rem -------------------------------------
ObjectTemplate.create PlayerControlObject digital_seconds
rem ObjectTemplate.geometry nothing
ObjectTemplate.setNetworkableInfo digital_secondsbodyinfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ObjectTemplate.addToCollisionGroup c_CGProjectiles
ObjectTemplate.hitpoints 10000
ObjectTemplate.maxhitpoints 10000
ObjectTemplate.hasArmor 1
ObjectTemplate.criticalDamage 10000
ObjectTemplate.hpLostWhileCriticalDamage 0
ObjectTemplate.TimeToLiveAfterDeath 0
ObjectTemplate.explosionRadius 0
ObjectTemplate.explosionDamage 0
ObjectTemplate.setMinimapIcon 0
ObjectTemplate.setMinimapIconSize 0

rem -------------------------------------
ObjectTemplate.addArmorEffect 10000 e_secondstimer_0 0/0/0
ObjectTemplate.addArmorEffect 9000 e_secondstimer_1 0/0/0
ObjectTemplate.addArmorEffect 8000 e_secondstimer_2 0/0/0
ObjectTemplate.addArmorEffect 7000 e_secondstimer_3 0/0/0
ObjectTemplate.addArmorEffect 6000 e_secondstimer_4 0/0/0
ObjectTemplate.addArmorEffect 5000 e_secondstimer_5 0/0/0
ObjectTemplate.addArmorEffect 4000 e_secondstimer_6 0/0/0
ObjectTemplate.addArmorEffect 3000 e_secondstimer_7 0/0/0
ObjectTemplate.addArmorEffect 2000 e_secondstimer_8 0/0/0
ObjectTemplate.addArmorEffect 1000 e_secondstimer_9 0/0/0

rem -------------------------------------
ObjectTemplate.addTemplate race_timerEngine
ObjectTemplate.setPosition 0/0/-0.5
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setMaxSpeed 0/45/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIPitch

rem -------------------------------------
rem -------------------------------------
rem -10SECONDS---------------------------
rem -------------------------------------
rem -------------------------------------
ObjectTemplate.create PlayerControlObject digital_10seconds
rem ObjectTemplate.geometry nothing
ObjectTemplate.setNetworkableInfo digital_10secondsbodyinfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ObjectTemplate.addToCollisionGroup c_CGProjectiles
ObjectTemplate.hitpoints 60000
ObjectTemplate.maxhitpoints 60000
ObjectTemplate.hasArmor 1
ObjectTemplate.criticalDamage 60000
ObjectTemplate.hpLostWhileCriticalDamage 0
ObjectTemplate.TimeToLiveAfterDeath 0
ObjectTemplate.explosionRadius 0
ObjectTemplate.explosionDamage 0
ObjectTemplate.setMinimapIcon 0
ObjectTemplate.setMinimapIconSize 0
rem -------------------------------------
ObjectTemplate.addArmorEffect 60000 e_10secondstimer_0 0/0/0
ObjectTemplate.addArmorEffect 50000 e_10secondstimer_1 0/0/0
ObjectTemplate.addArmorEffect 40000 e_10secondstimer_2 0/0/0
ObjectTemplate.addArmorEffect 30000 e_10secondstimer_3 0/0/0
ObjectTemplate.addArmorEffect 20000 e_10secondstimer_4 0/0/0
ObjectTemplate.addArmorEffect 10000 e_10secondstimer_5 0/0/0
rem -------------------------------------
ObjectTemplate.addTemplate race_timerEngine
ObjectTemplate.setPosition 0/0/-0.5
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setMaxSpeed 0/45/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIPitch

rem -------------------------------------
rem -------------------------------------
rem -MINUTES-----------------------------
rem -------------------------------------
rem -------------------------------------
ObjectTemplate.create PlayerControlObject digital_minutes
rem ObjectTemplate.geometry nothing
ObjectTemplate.setNetworkableInfo digital_minutesbodyinfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ObjectTemplate.addToCollisionGroup c_CGProjectiles
ObjectTemplate.hitpoints 600000
ObjectTemplate.maxhitpoints 600000
ObjectTemplate.hasArmor 1
ObjectTemplate.criticalDamage 600000
ObjectTemplate.hpLostWhileCriticalDamage 0
ObjectTemplate.TimeToLiveAfterDeath 0
ObjectTemplate.explosionRadius 0
ObjectTemplate.explosionDamage 0
ObjectTemplate.setMinimapIcon 0
ObjectTemplate.setMinimapIconSize 0
rem -------------------------------------
ObjectTemplate.addArmorEffect 600000 e_minutestimer_0 0/0/0
ObjectTemplate.addArmorEffect 540000 e_minutestimer_1 0/0/0
ObjectTemplate.addArmorEffect 480000 e_minutestimer_2 0/0/0
ObjectTemplate.addArmorEffect 420000 e_minutestimer_3 0/0/0
ObjectTemplate.addArmorEffect 360000 e_minutestimer_4 0/0/0
ObjectTemplate.addArmorEffect 300000 e_minutestimer_5 0/0/0
ObjectTemplate.addArmorEffect 240000 e_minutestimer_6 0/0/0
ObjectTemplate.addArmorEffect 180000 e_minutestimer_7 0/0/0
ObjectTemplate.addArmorEffect 120000 e_minutestimer_8 0/0/0
ObjectTemplate.addArmorEffect 60000 e_minutestimer_9 0/0/0
rem -------------------------------------
ObjectTemplate.addTemplate race_timerEngine
ObjectTemplate.setPosition 0/0/-0.5
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setMaxSpeed 0/45/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIPitch


rem -------------------------------------
rem -------------------------------------
rem -10MINUTES---------------------------
rem -------------------------------------
rem -------------------------------------
ObjectTemplate.create PlayerControlObject digital_10minutes
rem ObjectTemplate.geometry nothing
ObjectTemplate.setNetworkableInfo digital_10minutesbodyinfo
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasResponsePhysics 1
rem ObjectTemplate.addToCollisionGroup c_CGProjectiles
ObjectTemplate.hitpoints 3600000
ObjectTemplate.maxhitpoints 3600000
ObjectTemplate.hasArmor 1
ObjectTemplate.criticalDamage 3600000
ObjectTemplate.hpLostWhileCriticalDamage 0
ObjectTemplate.TimeToLiveAfterDeath 0
ObjectTemplate.explosionRadius 0
ObjectTemplate.explosionDamage 0
ObjectTemplate.setMinimapIcon 0
ObjectTemplate.setMinimapIconSize 0
rem -------------------------------------
ObjectTemplate.addArmorEffect 3600000 e_10minutestimer_0 0/0/0
ObjectTemplate.addArmorEffect 3000000 e_10minutestimer_1 0/0/0
ObjectTemplate.addArmorEffect 2400000 e_10minutestimer_2 0/0/0
ObjectTemplate.addArmorEffect 1800000 e_10minutestimer_3 0/0/0
ObjectTemplate.addArmorEffect 1200000 e_10minutestimer_4 0/0/0
ObjectTemplate.addArmorEffect 600000 e_10minutestimer_5 0/0/0
rem -------------------------------------
ObjectTemplate.addTemplate race_timerEngine
ObjectTemplate.setPosition 0/0/-0.5
ObjectTemplate.setRotation 0/0/0
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/0
ObjectTemplate.setMaxRotation 0/10/0
ObjectTemplate.setMaxSpeed 0/45/0
ObjectTemplate.setAcceleration 0/1000/0
ObjectTemplate.setInputToPitch c_PIPitch
rem -------------------------------------


rem -------
rem -------
rem -------
rem -------
rem -------
rem -------ENGINE------------------------
ObjectTemplate.create Engine race_timerEngine
ObjectTemplate.setNetworkableInfo race_timerEngineInfo
ObjectTemplate.setAttachToListener 1
ObjectTemplate.loadSoundScript Sounds/race_timerEngine.ssc
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1



rem -------
rem -------
rem -------
rem *** timer_secondsSpawner ***
ObjectTemplate.create ObjectSpawner digital_secondsSpawner
ObjectTemplate.setObjectTemplate 1 digital_seconds
ObjectTemplate.setObjectTemplate 2 digital_seconds
ObjectTemplate.minSpawnDelay 0
ObjectTemplate.maxSpawnDelay 0
ObjectTemplate.TimeToLive 0
ObjectTemplate.Distance 1
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.team 1
ObjectTemplate.holdObject 1
ObjectTemplate.damageWhenLost 100000000
ObjectTemplate.MaxNrOfObjectSpawned 1

rem *** timer_secondsSpawner ***
ObjectTemplate.create ObjectSpawner digital_10secondsSpawner
ObjectTemplate.setObjectTemplate 1 digital_10seconds
ObjectTemplate.setObjectTemplate 2 digital_10seconds
ObjectTemplate.minSpawnDelay 0
ObjectTemplate.maxSpawnDelay 0
ObjectTemplate.TimeToLive 0
ObjectTemplate.Distance 1
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.team 1
ObjectTemplate.holdObject 1
ObjectTemplate.damageWhenLost 100000000
ObjectTemplate.MaxNrOfObjectSpawned 1

rem *** timer_secondsSpawner ***
ObjectTemplate.create ObjectSpawner digital_minutesSpawner
ObjectTemplate.setObjectTemplate 1 digital_minutes
ObjectTemplate.setObjectTemplate 2 digital_minutes
ObjectTemplate.minSpawnDelay 0
ObjectTemplate.maxSpawnDelay 0
ObjectTemplate.TimeToLive 0
ObjectTemplate.Distance 1
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.team 1
ObjectTemplate.holdObject 1
ObjectTemplate.damageWhenLost 100000000
ObjectTemplate.MaxNrOfObjectSpawned 1

rem *** timer_secondsSpawner ***
ObjectTemplate.create ObjectSpawner digital_10minutesSpawner
ObjectTemplate.setObjectTemplate 1 digital_10minutes
ObjectTemplate.setObjectTemplate 2 digital_10minutes
ObjectTemplate.minSpawnDelay 0
ObjectTemplate.maxSpawnDelay 0
ObjectTemplate.TimeToLive 0
ObjectTemplate.Distance 1
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.team 1
ObjectTemplate.holdObject 1
ObjectTemplate.damageWhenLost 100000000
ObjectTemplate.MaxNrOfObjectSpawned 1


The damage bubble

Code: Select all

ObjectTemplate.create Bundle drainer
ObjectTemplate.geometry drainer
ObjectTemplate.hasCollisionPhysics 1


ObjectTemplate.addTemplate CarRepairpointdrain
ObjectTemplate.setPosition 0/0/0
ObjectTemplate.setRotation 0/0/0

ObjectTemplate.create SupplyDepot CarRepairpointdrain
ObjectTemplate.radius 50
ObjectTemplate.team 0


ObjectTemplate.addVehicleType digital_seconds -1 -1000 0
ObjectTemplate.addVehicleType digital_10seconds -1 -1000 0
ObjectTemplate.addVehicleType digital_minutes -1 -1000 0
ObjectTemplate.addVehicleType digital_10minutes -1 -1000 0





ObjectTemplate.AddAmmoType 0 -1 -1000 0

ObjectTemplate.workOnVehicles 1
ObjectTemplate.workOnSoldiers 0
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

this what i think

the pco´s are shielded by the car, only way to get around it is to add the bubble directly to the car.

you have to figure out a way to get the car to spawn the bubble when inside the racetrack only to get it to work like you want.

explanation.
if i add a big health bubble hanging in "the air" over the static carriers in coral sea it doesnt affect the soldiers when they get in the carriers aa guns, but if i add the health bubble directly to the carrier they can survive a bad snipershot and get new hp from the bubble without leaving the aa.
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: damage bubble effect on child object

Post by fo0k »

thanks man..

I just tried adding it directly but still no joy. also I should have stated.. I did make a concept of this where I had the seconds PCO as an actual Daihatsu.. which then had the damage effects added to it. this, although buggy did work when i entered the damage area.. so Im pretty sure that the main PCO does not neccessarily block child PCO's from supplydepots.. :/

Im trying to keep the number pcos down to as little as possible to make them work/hold etc.. but there must be something about normal 'vehicles' that my clock PCO's are missing :/

maybe its having an actual mesh? I didnt think this would matter.. but perhaps?
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: damage bubble effect on child object

Post by fo0k »

also.. I have tested again on wake to make sure Im not goin mad..

To a pure Wake I added a damage bubble in the middle of the map to only hurt daihatsus..

and when they are hanging on the ships.. it damages them. :(

so it MUST work! lol

but for some reason my car or probably the clock object fails.
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

*brain shrubbing* lol

i just realised that a tank for instance, dont repair standing on a repairdock untill you get in it, unless you spawn it set to a certain team much like they usually do with the ships "ObjectTemplate.teamOnVehicle" "ObjectTemplate.team 1" and that stuff

edit: i think it was this line "ObjectTemplate.SetTeam" that lock a vehicle to a certain team, then it will repair/damage "empty"

no wait "ObjectTemplate.TeamOnVehicle 1" damn it was a long time since i used this stuff : )



Code: Select all

rem *** timer_secondsSpawner ***
ObjectTemplate.create ObjectSpawner digital_secondsSpawner
ObjectTemplate.setObjectTemplate 1 digital_seconds
ObjectTemplate.setObjectTemplate 2 digital_seconds
ObjectTemplate.minSpawnDelay 0
ObjectTemplate.maxSpawnDelay 0
ObjectTemplate.TimeToLive 0
ObjectTemplate.Distance 1
ObjectTemplate.spawnOffset 0/0/0
ObjectTemplate.team 1
ObjectTemplate.holdObject 1
ObjectTemplate.damageWhenLost 100000000
ObjectTemplate.MaxNrOfObjectSpawned 1
ObjectTemplate.TeamOnVehicle 1  <-------------- try add this 

Code: Select all

ObjectTemplate.create SupplyDepot CarRepairpointdrain
ObjectTemplate.radius 50
ObjectTemplate.team 0  <------- and change this
i think you can set it to team 3 or whatever as long it is the same in all code
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: damage bubble effect on child object

Post by fo0k »

I have played with the teams a bit.. but not got it to work.. however.. I have been swapping them around a bit rather that actually having some method.. I presumed that it was just team 0 and 1 for Axis/Allies but I see what you mean about anything so long as its the same.

I will try in the morning! thanks
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: damage bubble effect on child object

Post by fo0k »

so.. after days and more time than I have ever spent trying to figure out anything before..

it turns out that the spawner object MUST have a timetolive value greater than 0 for it to be affected by a supply depot. This was never really in my line of sight as the issue..

anyway.. a mixture of joy and frustration at the answer being so pointless.

i still have a seperate issue though.. where the object dies too quick..

as i posted before somewhere.. the object has 10000 HP's and the death bubble is set to drain 1000 per second.. but it takes roughly 5.1 seconds to die.. so not exactly half (which I could live with/compensate for!)

any idea why its taking extra damage?
freddy
Posts: 1267
Joined: Sun Oct 18, 2009 4:58 pm

Post by freddy »

i have some small deathbubbles for the drivers position in the carriers and i noticed that when the map starts over and you get in the driver seat it gives a lot more damage for a short while, then it works as supposed to for the rest of the maps playtime.

its no big deal in my case as the damage setting is very low
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: damage bubble effect on child object

Post by fo0k »

I can only think it has something to do with the type of pco it is.. but not figured it out yet :/

this clock is proving to be a lot more hard work that i expected..
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: damage bubble effect on child object

Post by fo0k »

Heeeellllppppppp..


Seriously.. why is my death bubble.. set to (now) take off 10HP's per sec... taking off like 23 HP's per sec? :(

What gives.. is this some weird behind the scenes thing.. armour type.. damage system.. any ideas..
Post Reply