Mysterious Command Post of Doom, 2 : The Return !
Now that seriously puzzle me … maybe you read my other post about the strange game behaviour when building the CP (solved issue) ?
Well, it strikes again !
Heres the issue, I have a tank using the globalaccum 8 bit 2 as an information of being able to go forward or not (barriers or whatever).
Now heres the Axis command post script :
const_cpx_canyon
{
spawn
{
wait 200
constructible_class 2
constructible_constructxpbonus 10
constructible_destructxpbonus 10
constructible_duration 7000
constructible_chargebarreq 1
}
trigger setup
{
setstate const_cpa_canyon_built invisible
setstate const_cpx_canyon_built invisible
setstate const_cpa_canyon_model invisible
setstate const_cpx_canyon_model invisible
setstate const_cp_canyon_antena invisible
setstate const_cp_canyon_closed_model default
setstate const_cp_canyon_t default
}
buildstart final
{
// setstate const_cpx_canyon_built underconstruction
setstate const_cpx_canyon_model underconstruction
setstate const_cp_canyon_antena underconstruction
setstate const_cp_canyon_closed_model invisible
}
built final
{
setstate const_cp_canyon_t invisible
setstate const_cpx_canyon_built default
setstate const_cpx_canyon_model default
setstate const_cp_canyon_antena default
wait 100
// wm_announce "<> ^3Axis Command Post constructed. Charge speed increased!"
// *----------------------------------- vo ------------------------------------------*
wm_teamvoiceannounce 0 "axis_hq_compost_constructed"
wm_teamvoiceannounce 1 "allies_hq_compost_constructed_axis"
wm_removeteamvoiceannounce 0 "axis_hq_compost_construct"
// *----------------------------------- vo ------------------------------------------*
wait 100
setchargetimefactor 0 soldier 0.7
setchargetimefactor 0 lieutenant 0.7
setchargetimefactor 0 medic 0.5
setchargetimefactor 0 engineer 0.6
setchargetimefactor 0 covertops 0.6
wait 200
}
death
{
trigger self setup
setchargetimefactor 0 soldier 1
setchargetimefactor 0 lieutenant 1
setchargetimefactor 0 medic 0.8
setchargetimefactor 0 engineer 0.9
setchargetimefactor 0 covertops 0.8
// alertentity const_cpx_canyon_obj
wm_announce "<> ^3Allies team has destroyed the Axis Command Post!"
// *----------------------------------- vo ------------------------------------------*
wm_addteamvoiceannounce 0 "axis_hq_compost_construct"
wm_teamvoiceannounce 0 "axis_hq_compost_damaged"
// *----------------------------------- vo ------------------------------------------*
}
decayed final
{
trigger self setup
}
}
Well do you see anything refering to a globalaccum 8 bit 2 change ? or any accum stuff at all ? Neither are there accum scripts isnt it ?
Well, once the command post is fully built, the globalccum 8 bit 2 is set. I dont know how.
I’ve checked all stuff (script & entities) related to the constructible, none is calling any other script or targeting another entity that would.
This script was copied from my allied command post script (wich uses the same trigger_objective_info to be built), only altering it to fit the axis command post. When the allied command post is built, everything’s fine.
I’ve checked my whole script for anything messing with the globalaccum 8, and found nothing.
My scripts does extensive use of globaccum 8 bits, other bits than #2 seems fine.
When the command post is destroyed, the value is back to normal.
I’ve made a hack in my script manually setting globalaccum 8 bitreset 2 once the CP is built, but in a certain situation this can lead the tank to go accross a built barrier. Works, but this fix is temporary, until I find the cause.
Its probably that I’ve missed something during my checks, but Ive checked quite a lot already … so, any suggestions ?