Anders Jenbo
1e40fdf51e
Clean PM_DoAttack & CanTalkToMonst ( #311 )
...
* Clean PM_DoAttack & CanTalkToMonst
* Fix friendly mode default
8 years ago
Anders Jenbo
7da6f4d08a
Clean up PM_DoDeath ( #317 )
...
* Clean up PM_DoDeath
* Add enum for dFlags
8 years ago
Anders Jenbo
f055f7ba18
Adjust InitMonsterGFX
...
Fixes #20
8 years ago
galaxyhaxz
38b498ac4b
Add 'const' to data to match original binary ( #200 )
8 years ago
Anders Jenbo
44b1349529
Clean up CheckMonsterHit
8 years ago
galaxyhaxz
503e5c1440
Names from DX SDK ( #197 )
8 years ago
Anders Jenbo
5b1aa609fc
Clean up InitMultiView
8 years ago
Anders Jenbo
31637532c9
Redefine nSolidTable as BYTE
...
Cleans PosOkMissile, CheckNoSolid, SolidLoc and LineClear
8 years ago
Anders Jenbo
fe3b0a9d09
Clean up DoEnding
8 years ago
Robin Eklind
5d46965fa2
Fix loading of TRN for unique monsters.
...
Fixes #31 .
8 years ago
Dennis Duda
0b5aef5edb
`PlaceGroup` is now near binary-exact
8 years ago
Dennis Duda
8bd518031b
Added `LIGHTSIZE` constant
8 years ago
Dennis Duda
5de0a5083b
`PlaceUniqueMonst` is now near binary-exact.
...
It's just the both struct pointers that seem to load a bit differently.
8 years ago
Dennis Duda
0f0bb1c713
`PlaceMonster` is now binary exact
8 years ago
Dennis Duda
7c75240c1e
`MonstPlace` now binary exact.
8 years ago
galaxyhaxz
f49117c95a
Update monster.cpp
8 years ago
Dennis Duda
ad59011c64
Shuffled things around in `InitMonster` to make the ordering closer to the beta, and making it binary exact
8 years ago
Dennis Duda
16a576cd5b
Brought `GetLevelMTypes` very close to binary exact
8 years ago
Dennis Duda
cf81adbd47
Minor adjustments to `InitLevelMonsters` and `AddMonsterType`
8 years ago
Dennis Duda
4461f657c3
Made `InitMonsterTRN` binary exact.
8 years ago
galaxyhaxz
5ed2336e90
Fix types of animation data ( #176 )
8 years ago
Dennis Duda
9d31a6e29c
Flip check in `AddMonsterType` to make it near binary perfect
8 years ago
Dennis Duda
50cbbded0c
Flipped setlevel check for better matching with the original binary
8 years ago
Dennis Duda
4391b247a8
Moved `monst->MData` to temporary variable to get the code very close to the original
8 years ago
Dennis Duda
302d1c6507
Flipped branches of PlaceQuestMonster to make it near byte-perfect.
8 years ago
Dennis Duda
22fcf9a074
Fixed stuff after rebase
8 years ago
Dennis Duda
834db70385
Cleaned up `PlaceGroup`
8 years ago
Dennis Duda
2e3a2f7544
Cleaned up `PlaceUniqueMonst`
8 years ago
Dennis Duda
375d0d469b
Fixed InitMonsterGFX, it now actually works!
8 years ago
Dennis Duda
0603e3e042
Cleaned up InitMonsterGFX, InitMonster, MonstPlace
8 years ago
Dennis Duda
66f522f34e
Small corrections/cleanups (thanks @galaxyhaxz :))
...
- Removed the `mt` variable since it didn't exist in the earlier PSX version
- Replaced raw constants with the proper defines
- Reworked the likely use of `numskeltypes`.
- Added `NUM_MTYPES` to `_monster_id` to represent the number of monster types
8 years ago
Dennis Duda
4c4fe6834c
Fixed missing quest enum value.
8 years ago
Dennis Duda
5d03a27248
Cleaned up `GetLevelMTypes`.
...
This had interesting compiler optimizations like
local array merging, which threw off IDA a bit.
By looking into older versions and the PSX symbols
I'm pretty sure I found the correct sizes for both arrays.
There are still minor differences, such as different parameter
loading for function calls. In other places, this solved itself with
time. (VC seems to generate different code base on a lot of
things, even down to alignment).
8 years ago
Dennis Duda
d78ffef5fa
Cleaned up `InitLevelMonsters` and `AddMonsterType`
8 years ago
Dennis Duda
f5675d7fec
Fixed formatting in `InitMonsterTRN`
8 years ago
Dennis Duda
df44956a78
Cleaned up InitMonsterTRN.
...
Including changed types used by that function.
8 years ago
galaxyhaxz
fa64b2148d
Add defines [W.I.P] ( #160 )
8 years ago
galaxyhaxz
775ae59e18
Fix function signatures and others ( #158 )
...
Fix InitObjects, themes.cpp, names
8 years ago
galaxyhaxz
a336c38226
Fix random(idx,v) calls ( #157 )
8 years ago
galaxyhaxz
9f34a366a6
Fix decompilation of skeleton spawning ( #152 )
8 years ago
Dennis Duda
0200a2abba
Refactored spells.cpp ( #147 )
...
Finished refactoring spells.cpp, modifying other files only as needed.
Some functions are 99% binary exact now, like PlacePlayer, for example.
Added notes/TODOs for places with remaining discrepancies.
8 years ago
galaxyhaxz
57e19cf1c0
Fix zhar quest, monster squelching, golem ( #75 )
8 years ago
galaxyhaxz
49a6f4f9fc
Add include guards, prepare for XRef ( #28 )
...
Add definitions, other junk.
8 years ago
galaxyhaxz
bb01c6f084
Remove the "fear factor" ( #21 )
...
Snakes, spiders, Demons, what scares you?
8 years ago
galaxyhaxz
bf2b23fc71
Fixed golem, now works perfect
8 years ago
galaxyhaxz
ffc8c38801
Update monster.cpp
8 years ago
galaxyhaxz
dde68ff89e
Add files via upload
8 years ago