Commit Graph

316 Commits

Author SHA1 Message Date
David Markowitz
4f447eb441 Merge branch 'moreMovementAi' of https://github.com/DarkflameUniverse/DarkflameServer into moreMovementAi 2023-08-19 22:44:13 -07:00
David Markowitz
11b1f5b9d4 Remove flags in controllablePhysics 2023-08-19 22:44:02 -07:00
Aaron Kimbre
8dd7553421 fix delay 2023-08-20 00:36:28 -05:00
Aaron Kimbre
5612e57590 respect try-parse
consolidate space trimming
2023-08-20 00:13:01 -05:00
Aaron Kimbre
2bb39f4fa5 fixe some spacey string
be smater about pausing
2023-08-16 15:53:13 -05:00
Aaron Kimbre
691a42ba20 Merge RC script from differnt branch
Add wandering vendor script
Update proximity monitors to move with their respective entityies
2023-08-15 14:35:35 -05:00
Aaron Kimbre
5168404567 fix path starting waypoint 2023-08-15 09:47:45 -05:00
David Markowitz
92e2ab55d9 Update MovementAIComponent.cpp 2023-08-14 20:42:07 -07:00
David Markowitz
959d19c8eb remove hard coded start 2023-08-14 20:28:45 -07:00
David Markowitz
b659edd980 Yes 2023-08-14 20:28:27 -07:00
David Markowitz
abce40f17f format 2023-08-14 20:15:25 -07:00
Aaron Kimbre
a63d7df0d2 Add waypoint command handling 2023-08-14 09:31:10 -05:00
David Markowitz
1b54387677 Merge branch 'main' into moreMovementAi 2023-08-12 21:57:07 -07:00
David Markowitz
56ab6bd4c3 updates 2023-08-12 00:40:18 -07:00
Aaron Kimbre
84ba38bd1d Add some command handlers 2023-08-12 00:40:48 -05:00
David Markowitz
2db8caadde Fix serialization for Controllable Physics 2023-08-11 21:37:35 -07:00
David Markowitz
5eca25e42a
refactor: Move CDClient Database away from constructor queries (#1164)
* Move away from constructor queries

Fix up other large tables to have proper backup lookups

Revert "idk im just dumb ig"

This reverts commit 5d5be5df53b8959b42b291613d7db749a65a3585.

idk im just dumb ig

* Fix slow components registry lookup

* add define for cdclient cache all

* Update CDBehaviorParameterTable.cpp
2023-08-10 23:27:40 -05:00
David Markowitz
2cc13c6499
chore: Make serialize actually virtual (#1156)
* Make serialize actually virtual

* fix serialize and make update virutal

* Update VendorComponent.h

* Remove flag var

* Update SoundTriggerComponent.h

---------

Co-authored-by: Aaron Kimbrell <aronwk.aaron@gmail.com>
2023-08-10 14:33:15 -07:00
David Markowitz
40c59c7f51 Ensure physics are predicted correctly
Update the PhysicsEntity position so it always matched the physics position.
2023-08-10 02:47:27 -07:00
David Markowitz
fba8fc9c45 Move blocks around 2023-08-10 02:09:58 -07:00
David Markowitz
a3b62d60f0 fixes and testing
Bounce works
add null check and default
2023-08-10 01:55:35 -07:00
Aaron Kimbre
facc225b82 block out some 2023-08-09 23:29:04 -05:00
Aaron Kimbre
1207d896a8 waypoint commands wip 2023-08-09 21:37:36 -05:00
David Markowitz
5f7a108154 woirking 2023-08-09 00:34:39 -07:00
David Markowitz
ed0c979544 Add file for u aronwk 2023-08-07 18:40:06 -07:00
David Markowitz
d372278b25 add arrived handler 2023-08-07 02:03:09 -07:00
David Markowitz
b546c96193 Add reversing 2023-08-07 01:46:03 -07:00
David Markowitz
aa734ef7ae Working Pausing and Resuming 2023-08-07 00:44:57 -07:00
David Markowitz
6a5ff30a32 Working built in reverse for movementAI 2023-08-06 23:40:30 -07:00
David Markowitz
3e12dd782b working forward 2023-08-06 21:15:06 -07:00
David Markowitz
bce87aaa06 use indexes for pathing 2023-08-06 20:25:22 -07:00
David Markowitz
a50e56e8ff replace with operator+= 2023-08-06 15:53:37 -07:00
Aaron Kimbrell
cefdfc696a
fix: Implement proper Sound trigger component serialization (#1160)
* cleanup

* more cleanup and fully implement the sound trigger
and racing sound trigger

* more cleanup, and better defaults

* fixes and tested

* update initializor for guid and when to load sound guids

* make racing sound trigger it's own component

* fix type

* Remove global
move serializes

---------

Co-authored-by: David Markowitz <EmosewaMC@gmail.com>
2023-08-06 15:38:12 -05:00
Aaron Kimbrell
a29253d2f0
feature: Donation Vendor Component (#1168)
* refactor: Vendor inventory loading
Implement proper delta compression
dynamically determine multicostitems and standard cost items
Quatantine max's custom code

* WIP

* progress missions

* address feedback

* fix newline

* Cleanup

* oops

* fix default for nexus tower jawbox
cleanup some logs

* remove log

* remove include that got added back
2023-08-03 21:44:03 -05:00
David Markowitz
d8a5fd49a4
chore: Small movementAiComponent cleanup (#1145)
* rename and cleanup file

* more

* fix broken function

* Further naming fixes

t

Revert "Further naming fixes"

This reverts commit 057189982ba56788d48f9265d815e6c562ba6328.

* next step

* undo all testing changes

* minor tweaks
2023-08-03 21:38:04 -05:00
David Markowitz
208ed02158
Fix incorrect kick out of rebuilds (#1120) 2023-08-03 21:37:27 -05:00
Aaron Kimbrell
c2b4aa4026
refactor: Vendor inventory loading (#1163)
* refactor: Vendor inventory loading
Implement proper delta compression
dynamically determine multicostitems and standard cost items
Quatantine max's custom code

* address feedback

* fix newline

* oops

* remove header

* fix default and const for

* he said make it a reference too, not just const
2023-08-03 05:51:52 -05:00
Gie "Max" Vanommeslaeghe
d1316cfc9f
Merge pull request #1107 from EmosewaMC/first-draft-leaderboard-re-write
feat: Leaderboards
2023-07-24 00:29:17 +02:00
TAHuntling
54454973a1
Distance for pet digs increased slightly to help with navmesh issues (#1151) 2023-07-22 02:49:23 -07:00
David Markowitz
887e2a25f0 Fix race score bugs
num wins serialized properly
scores are saved and num wins and times played are incremented properly
2023-07-21 23:18:51 -07:00
David Markowitz
34392932b3 Merge branch 'main' into pr/1107 2023-07-21 19:40:30 -07:00
David Markowitz
0c0f7216a1 Merge branch 'main' into pr/1107 2023-07-21 19:38:59 -07:00
TAHuntling
342da56678
Added Player Rewards for Solo Racing (#1150)
* Added Player Rewards for Solo Racing

* Fixed Dual PlayersRating multiplication

* Checking for solo player fixed

* Another change to fix issues
2023-07-21 19:37:31 -05:00
David Markowitz
3e3148e910
Move dZoneManager to game namespace (#1143)
* convert zone manager to game namespace

* Destroy logger last
2023-07-17 17:55:33 -05:00
David Markowitz
080a833144
Convert BrickDatabase to namespace (#1142)
* Convert BrickDatabase to namespace

This did not need to be a class.

* Fix linker errors

* convert to anonymous namespace

so the cache is unmodifiable outside the brickcache

* Move to lower scope level and remove log
2023-07-17 17:55:25 -05:00
David Markowitz
455f9470a5
Move EntityManager to Game namespace (#1140)
* Move EntityManager to Game namespace

* move initialization to later

Need to wait for dZoneManager to be initialized.

* Fix bugs

- Cannot delete from a RandomAccessIterator while in a range based for loop.

Touchup zone manager initialize

replace magic numbers with better named constants
replace magic zonecontrol id with a more readable hex alternative
condense stack variables
move initializers closer to their use
initialize entity manager with zone control

change initialize timings

If zone is not zero we expect to initialize the entity manager during zone manager initialization

Add constexpr for zone control LOT

* Add proper error handling

* revert vanity changes

* Update WorldServer.cpp

* Update dZoneManager.cpp
2023-07-15 13:56:33 -07:00
Aaron Kimbrell
9375c36c7b
fix: remove hardcoded rotations now that vehicles orient correctly (#1132) 2023-07-03 11:58:49 -05:00
David Markowitz
45256a0338 Merge remote-tracking branch 'upstream/main' into first-draft-leaderboard-re-write 2023-06-21 21:48:22 -07:00
David Markowitz
d340874284 more bug fixing
- fix weekly leaderboards
- fix ag classic vs dlu scoring
- fix sorting for survival ns
- fix sorting for racing
2023-06-21 19:46:01 -07:00
David Markowitz
132d31d3ab
Fix vehicle serialization during races (#1122)
* Fix vehicle serialization during races

- Add missing frame stats reading
- correct the inversion of rotation
- correct serialization order
- use proper dirty flags

Tested that racers are no longer sideways on certain vertical slopes and stay in sync throughout the whole race.

* Update ClientPackets.cpp

* Update ClientPackets.cpp

* Update VehiclePhysicsComponent.h
2023-06-20 09:19:21 -05:00