Skip to content

Commit

Permalink
3rd person
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed Mar 24, 2024
1 parent 3105255 commit 8c8a3e1
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coldwar/scripts/core_common/dev/config.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,7 @@ function AtianMenuConfigDev() {
"tool_menu::Invulnerability"
);

// zm halloween
setgametypesetting(#"hash_4751990deae37e66", true);
}
#endif
13 changes: 13 additions & 0 deletions coldwar/scripts/core_common/menu_funcs.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -418,4 +418,17 @@ function func_unlock_all(item) {
}
}
#endif
}

func_3rdperson(item) {
if (!isdefined(self.thirdperson)) {
self.thirdperson = false;
}

self.thirdperson = !self.thirdperson;

item.activated = self.thirdperson;

self setclientthirdperson(self.thirdperson);
return true;
}
1 change: 1 addition & 0 deletions coldwar/scripts/core_common/menu_items.gsc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
function init_menus() {
self add_menu("tool_menu", "Tools", "start_menu", true);
self add_menu_item_modswitch("tool_menu", "Fly", "fly");
self add_menu_item("tool_menu", "Third person", &func_3rdperson);
self add_menu_item_modswitch("tool_menu", "Ammos", "maxammo");

self add_menu_item("tool_menu", "Invulnerability", &func_invulnerability);
Expand Down
3 changes: 3 additions & 0 deletions docs/notes/errors.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Charlie 643 Ace Alligator 1167526340 invalid session mode
Collar 543 Satellite Fort 1756043215 Usage: kill( <source position>, <attacker>, <inflictor>, <weapon>)
Collar 772 Flying Shell 2378228303 invalid session mode
David 180 Camouflaged Asset 2572009355 vector scale expecting vector
David 246 Violet Axe 285416523 not an object
David 368 Fast Highway 3596277323 endoncallback must have at least one valid argument
David 658 Battle Mole 2737681163 assert fail (with message)
David 888 Patient Bayonet 1517473035 Value out of range. Allowed values: 0 to 2
Expand Down Expand Up @@ -138,6 +139,7 @@ November 588 Barren Carrier 1593720126 Can't register dvar
November 670 Boiling Avalanche 829015102 not a pointer
November 670 Boiling Avalanche 829015102 var isn't a field object
November 990 Fake Operator 1480821566 Error registering client field. Attempted field size is not acceptable bit number range 1->32
Ocean 116 Confused Corps 1642120921 1st param should be a hash or a string
Ocean 270 Grounded Infantry 1850691545 Debug Break
Ocean 529 Broken Lamprey 3967909977 Trying to get version of a demo when the demo system is idle.
Option 102 Grounded Thunder 525308842 GetBaseWeaponItemIndex: invalid weapon named passed.
Expand Down Expand Up @@ -177,6 +179,7 @@ Queen 427 Apocalyptic Treasure 4182670005 invalid session mode
Queen 47 Sick Eagle 325402485 script stack overflow (too many embedded function calls)
Queen 577 Weak Manuever 1967731701 Invalid type passed in from array into waittill parameter list
Queen 964 Shellshocked Rank 2185211445 Can't register dvar
Roger 304 Hurt Honey 3797948576 not an object
Roger 356 Gray Pig 1377489376 Gesture key can't have the higher bit set
Roger 391 Emerald Refuge 4223282976 Error loading fastfile patch header
Roger 440 Unlimited Fox 3723589344 not a function pointer
Expand Down
3 changes: 3 additions & 0 deletions docs/notes/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -1303,4 +1303,7 @@ ximage_ee83883ec8d08f topology 1
ASSET_TYPE_UNLOCKABLE_ITEM_TABLE -> sub_6B63F0
music zm_frontend
Animtree = sub_2755AB0
```

0 comments on commit 8c8a3e1

Please sign in to comment.