261 Commits

Author SHA1 Message Date
6f37b20c5d
Add *UNSAFE* json dump for debugging
ripped from stackoverflow
2022-03-23 01:30:07 -04:00
d37ec04dc0
Use local PM instead of global PartsManager for
This will ease in converting PartsManager to OOP
2022-03-22 22:42:53 -04:00
9bd53b7e75
Improve dumpTable function 2022-03-22 22:42:19 -04:00
d34c5204df
Clean up and document PartsManger 2022-03-22 14:24:38 -04:00
89dbf2ef2c
Move health to old state, add underwater state
Sync when underwater state changes
2022-03-21 23:12:22 -04:00
f1ad854993
Move all visibility management to PartsManager 2022-03-21 23:08:29 -04:00
aa4772ca02
Add PartsManager visibility rules, new config opts 2022-03-21 21:48:43 -04:00
e1108238a4
Refactor model groups 2022-03-21 21:47:59 -04:00
4a19ddf72b
Fix a lot of bugs in PartsManager 2022-03-21 21:46:42 -04:00
0ca5905ab6
Parts manager: actually evaluate functions 2022-03-21 18:17:59 -04:00
1cfe63e7de
Add basic parts management code 2022-03-21 18:12:50 -04:00
72a8670e13
Fix reduce and ireduce parameter order 2022-03-21 18:11:34 -04:00
63472fac77
Add more vim folds 2022-03-21 15:39:34 -04:00
59d9e7ff7a
Add reduce and ireduce functions (untested) 2022-03-21 15:30:58 -04:00
cd3ecae481
Add basic settings manager 2022-03-21 15:28:29 -04:00
3eb3dacfb0
Fix filter function 2022-03-21 10:32:44 -04:00
7de0e7f399
Refactor state management, other changes
- State information stored in a table that is automatically populated
- Changing state data handled by function instead of duplicating code
- Add configuration to print all configs on skin load
- Add debugPrint function which prints variable and returns it
- Use local scope for snore functions
2022-03-20 23:43:27 -04:00
752aca78c7
Add items to Lua globals list 2022-03-20 23:32:05 -04:00
96da4a7cbd
Add function to merge two tables 2022-03-20 22:27:49 -04:00
fb64a26414
Add EmmyLua annotations to utility functions 2022-03-20 22:27:25 -04:00
147c1a2f69
Fix unstring number conversion 2022-03-20 22:02:08 -04:00
5c41c4d1d5
Change parameter order for filter and map 2022-03-20 22:01:28 -04:00
42f3f96a19
Add filter function
Works like other programming languages
filter(table, func): return table of items
2022-03-20 21:56:24 -04:00
4011493f39
Add unstring and map utility functions
unstring(str): Attempt to convert str to a different type
map(table, func): apply func to every item in table
2022-03-20 21:51:36 -04:00
99d8a96af4
Rearrange ping functions 2022-03-20 21:39:32 -04:00
74c47bb8dc
Add armor command, make verbose 2022-03-20 01:28:16 -04:00
c124048cd7
Make command syntax more consistent 2022-03-20 01:24:20 -04:00
98d613c227
Change command prefix 2022-03-20 01:20:39 -04:00
5c0768fdcd
Add snoring, including toggle and state sync 2022-03-20 01:16:07 -04:00
f065564cea
Add named cooldowns
Function takes name and tick count. Return true and insert new cooldown
if no matching cooldown present, else return false
2022-03-20 00:41:39 -04:00
4d4587768b
Reduce sound file size 2022-03-20 00:27:07 -04:00
2d4f78b269
Add sound assets 2022-03-20 00:15:36 -04:00
74608ed27c
Add skin state persistence using data api 2022-03-19 01:36:40 -04:00
7f64ee43c9
Add trust check, disable model if untrusted 2022-03-19 01:04:39 -04:00
f109c763c1
Add vanilla toggle function 2022-03-19 00:51:12 -04:00
b4c71f509d
Fix armor toggle function 2022-03-19 00:49:26 -04:00
81d66720fe
Add sync state function, fix tick optimization 2022-03-19 00:17:57 -04:00
042405cb63
Avoid accessing state variables within pings
The host instance of the variable should be authoritative to ensure host
and clients are in sync
2022-03-18 23:55:52 -04:00
776de24593
Refactor visor expression/damage code
- Scope entire expression change code
- Use tables for related values
- Make certain variables and functions local
2022-03-16 20:23:51 -04:00
9788f8d231
Use splitstring for command handling 2022-03-16 20:09:56 -04:00
cf2a52eb8b
Add split string function 2022-03-16 20:04:37 -04:00
3941dd831f
Add UV utility function 2022-03-16 19:42:48 -04:00
9bf55c0835
Merge branch 'feature/trust_check' into master 2022-03-16 14:10:50 -04:00
9ff1c3abf2
Add function to dump tables as string 2022-03-16 13:27:56 -04:00
c951d0b164
Split dimensions constant, remove useless var
Removes 'factor' and 'size', adds 'TEXTURE_WIDTH', 'TEXTURE_HEIGHT'
2022-03-16 10:33:20 -04:00
8f996c4dd0
remove empty onDamage function 2022-03-16 09:16:05 -04:00
da194701f9
Add comments (vim fold marker) 2022-03-16 09:15:04 -04:00
02c22df59c
Add vim modeline to beginning of script 2022-03-16 08:36:44 -04:00
d3af45409b
Fix indentation 2022-03-15 23:46:11 -04:00
1bf4859501
Add and use named timers instead
Prevents multiple calls to function when it expires, some functions
should only be run once
2022-03-15 23:44:17 -04:00