Hello,
I think it's better to make a new topic with all the mapscript stuff related, so it's easier to find in a future and to propose / fix / improve the scripts
Caen2
Main problem in Caen2 was that there are no sounds (flag captured / tank repaired / tank damaged / bridge repaired / bridge damaged). A simple fix was to find all caen2_ and replace by caen_ as in this example:
wm_addteamvoiceannounce 0 "caen2_axis_city_capture"
wm_addteamvoiceannounce 0 "caen2_axis_tank_steal"
Replace by
wm_addteamvoiceannounce 0 "caen_axis_city_capture"
wm_addteamvoiceannounce 0 "caen_axis_tank_steal"
This solves all problems except the 'flag captured' sound, as there is actually no 'flag captured' sound in the map. To fix this and have some audio feedback when axis / allies capture the flag, without modifying the pk3 file, what I think is best is to add the generic 'objective captured / objective lost' sound when axis or allies capture flag.
To do this, we must add to the mapscript these lines:
Inside trigger axis_capture:
wm_teamvoiceannounce 0 "axis_hq_objective_captured"
wm_teamvoiceannounce 1 "allies_hq_objective_lost"
Inside trigger allies_capture:
wm_teamvoiceannounce 0 "axis_hq_objective_lost"
wm_teamvoiceannounce 1 "allies_hq_objective_captured"
So both triggers would look like this:
trigger axis_capture // Flag has been touched by an Axis player
{
accum 0 abort_if_equal 0 // do Axis own flag?
accum 0 set 0 // Axis own the pole
wm_announce "Axis captured the town!"
// *----------------------------------- vo ------------------------------------------*
wm_removeteamvoiceannounce 0 "caen_axis_city_capture"
wm_removeteamvoiceannounce 1 "caen_allies_city_capture"
wm_teamvoiceannounce 0 "axis_hq_objective_captured"
wm_teamvoiceannounce 1 "allies_hq_objective_lost"
// *---------------------------------------------------------------------------------*
wm_objective_status 1 0 1
wm_objective_status 1 1 2
wm_set_main_objective 2 0
wm_set_main_objective 2 1
alertentity city_wobj
}
trigger allied_capture // Flag has been touched by an allied player
{
accum 0 abort_if_equal 1 // do Allies own flag?
accum 0 set 1 // Allied own the flag
wm_announce "Allies reclaim the town!"
// *----------------------------------- vo ------------------------------------------*
wm_addteamvoiceannounce 0 "caen_axis_city_capture"
wm_addteamvoiceannounce 1 "caen_allies_city_capture"
wm_teamvoiceannounce 0 "axis_hq_objective_lost"
wm_teamvoiceannounce 1 "allies_hq_objective_captured"
// *---------------------------------------------------------------------------------*
wm_objective_status 1 0 2
wm_objective_status 1 1 1
wm_set_main_objective 1 0
wm_set_main_objective 1 1
alertentity city_wobj
}
With this, I think all sounds would be fixed and have a 'flag status audio feedback'.
et_beach
Beach has a big problem with spawnkilling on axis bunker so an idea was to make invisible walls in both windows that lead to spawn, and also to remove both MGs so axis can't take advantage from them.
So the job was done by looking into the et_beach.bsp file for the origin coordinates of MG42 and using the func_fakebrush in the mapscript:
/// Invisible walls in Axis spawn windows
delete
{
origin "2365 3168 1176" // Removes upper MG42
}
delete
{
origin "2334 2656 920" // Removes lower MG42
}
// Create fake wall in uper window
create
{
scriptName "roof_bugfix"
classname "func_fakebrush"
origin "2345 3166 1170"
contents 1 // CONTENTS_SOLID
mins "-15 -200 -60"
maxs "20 200 100"
}
// Create fake wall in lower window
create
{
scriptName "roof_bugfix"
classname "func_fakebrush"
origin "2334 2656 920"
contents 1 // CONTENTS_SOLID
mins "-15 -200 -60"
maxs "5 200 100"
}
/// End invisible walls
These are tweaked to be 'indise' the window space so players don't get bugged into the fake wall, but can't test alone the explosions (how explosion range from panzer/mortar would affect). Can be modified in a future if needed.
Attached you will see the mapscript files with the modifications described above. These files are based in the original script files included in the pk3 so they don't include any modification from base maps except the ones described in this topic.
Any suggestions and improvements are welcome, also from other maps if you'd like some modification, I'm no pro but I can do some research
et_beach.script
caen2.script