Skip to content

Commit

Permalink
*Add Camera Preference Menu Option + Hide some WB only Menus
Browse files Browse the repository at this point in the history
- Was playing as Dwarf the other day, and was annoyed I had to keep changing my camera every battle, so I added a Camera preference option :)
- Upped the # of combatants in Custom Battles, cause why not.
  • Loading branch information
khamukkamu committed Nov 13, 2017
1 parent e191a69 commit 6c7eba0
Show file tree
Hide file tree
Showing 17 changed files with 522 additions and 497 deletions.
367 changes: 190 additions & 177 deletions ModuleSystem/module_game_menus.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion ModuleSystem/module_mission_templates.py
Expand Up @@ -84,7 +84,7 @@
(gt, "$cam_current_agent", -1)
],
[
(assign, "$cam_mode", 0),
(assign, "$cam_mode", "$pref_cam_mode"),
(assign, "$shoot_mode", 0),
(assign, "$cam_free", 0)
]),
Expand Down
7 changes: 5 additions & 2 deletions ModuleSystem/module_mission_templates_TLD_wb.py
Expand Up @@ -1048,7 +1048,10 @@

(agent_get_team, ":agent1_team", ":agent1"),

(try_for_agents, ":agent2"),
(set_fixed_point_multiplier, 100),
(agent_get_position, pos19, ":agent1"),

(try_for_agents, ":agent2", pos19, 100),
(neq, ":agent1", ":agent2"),
(agent_is_active, ":agent2"),
(agent_is_alive, ":agent2"),
Expand Down Expand Up @@ -1310,7 +1313,7 @@
(agent_get_troop_id, ":troop_id", ":agent_no"),
(store_skill_level, ":horse_archery_level", "skl_horse_archery", ":troop_id"),
(ge, ":horse_archery_level", 4),

(neg|agent_slot_eq, ":agent_no", 1003, 1),
(agent_get_horse, ":horse_no", ":agent_no"),
(assign, ":melee_weapon", -1),
Expand Down
17 changes: 11 additions & 6 deletions ModuleSystem/module_scripts.py
Expand Up @@ -1892,12 +1892,6 @@ def set_item_score():
(assign, "$show_mount_ko_message",1),#Kham - Show Horse KO Message - Player Damage Only by default
(assign, "$dormant_spawn_radius", 1), #Kham - Dormant Spawn Radius initialize
(assign, "$tld_player_level_to_begin_war",8), #Kham - Custom Level to Start the War
(assign, "$bright_nights",1), #Kham - Brighter Nights
(assign, "$field_ai_lord",1), #Kham - Battlefield Lord AI
(assign, "$field_ai_horse_archer",1), #Kham - Battlefield Horse Archer AI
(assign, "$field_ai_archer_aim",1), #Kham - Battlefield Archer Aim
(assign, "$advanced_siege_ai",1), #Kham - Advanced Siege AI - default is ON



#(try_for_range, ":beacon", "p_amon_din", "p_spawn_points_end"),
Expand All @@ -1915,6 +1909,16 @@ def set_item_score():

] + (is_a_wb_script==1 and [

#Init WB Only globals

(assign, "$bright_nights",1), #Kham - Brighter Nights
(assign, "$field_ai_lord",1), #Kham - Battlefield Lord AI
(assign, "$field_ai_horse_archer",1), #Kham - Battlefield Horse Archer AI
(assign, "$field_ai_archer_aim",1), #Kham - Battlefield Archer Aim
(assign, "$advanced_siege_ai",1), #Kham - Advanced Siege AI - default is ON
(assign, "$pref_cam_mode", 0), #Kham - Camera Preference - Default is Default


#Custom Camera Initialize
(call_script, "script_init_camera"),

Expand Down Expand Up @@ -13522,6 +13526,7 @@ def set_item_score():
(position_transform_position_to_local, pos3, pos2, pos1),
(position_get_x, ":agent_x_pos", pos3),
(position_get_y, ":agent_y_pos", pos3),
(val_max, "$g_battle_map_scale", 1), #MV defensive fix to avoid division by zero
(val_div, ":agent_x_pos", "$g_battle_map_scale"),
(val_div, ":agent_y_pos", "$g_battle_map_scale"),
(set_fixed_point_multiplier, 1000),
Expand Down
1 change: 1 addition & 0 deletions ModuleSystem/variables_wb.txt
Expand Up @@ -739,3 +739,4 @@ qst_refugee_party_1_killed
qst_refugee_party_2_killed
qst_refugee_party_3_killed
qst_reinforcement_party
pref_cam_mode
326 changes: 163 additions & 163 deletions _wb/conversation.txt

Large diffs are not rendered by default.

110 changes: 55 additions & 55 deletions _wb/menus.txt

Large diffs are not rendered by default.

102 changes: 51 additions & 51 deletions _wb/mission_templates.txt

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion _wb/quick_strings.txt
@@ -1,4 +1,4 @@
1459
1460
qstr_Received_{reg0}_dama Received_{reg0}_damage.
qstr_Siege_Weapon_damaged Siege_Weapon_damaged_{reg10}_agents
qstr_Gate_is_breached! Gate_is_breached!
Expand Down Expand Up @@ -860,6 +860,7 @@ qstr_Native Native
qstr_All_messages All_messages
qstr_Player_damage_only Player_damage_only
qstr_No_Messages No_Messages
qstr_Fixed_Over_The_Shoul Fixed_Over-The-Shoulder_Camera
qstr_{reg0}__will_most_li {reg0}_(will_most_likely_cause_save_crashes)
qstr_{reg0}__could_possib {reg0}_(could_possibly_cause_save_crashes)
qstr_Normal Normal
Expand Down
4 changes: 2 additions & 2 deletions _wb/scripts.txt

Large diffs are not rendered by default.

40 changes: 20 additions & 20 deletions _wb/simple_triggers.txt

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions _wb/triggers.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions _wb/variable_uses.txt
Expand Up @@ -739,3 +739,4 @@
1
1
13
33
1 change: 1 addition & 0 deletions _wb/variables.txt
Expand Up @@ -739,3 +739,4 @@ qst_refugee_party_1_killed
qst_refugee_party_2_killed
qst_refugee_party_3_killed
qst_reinforcement_party
pref_cam_mode
10 changes: 5 additions & 5 deletions menus.txt

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions scripts.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion variable_uses.txt
Expand Up @@ -684,7 +684,7 @@
3
2
5
3
0
3
3
3
Expand Down

0 comments on commit 6c7eba0

Please sign in to comment.