mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-20 08:25:27 +00:00
RE COutput/InputStream and friends and migrate over
This branch is probably still horribly broken, but it's a good first step to migrating away from having hecl embedded in the runtime
This commit is contained in:
@@ -15,14 +15,14 @@
|
||||
|
||||
namespace metaforce::MP1 {
|
||||
CChozoGhost::CBehaveChance::CBehaveChance(CInputStream& in)
|
||||
: x0_propertyCount(in.readUint32Big())
|
||||
, x4_lurk(in.readFloatBig())
|
||||
, x8_taunt(in.readFloatBig())
|
||||
, xc_attack(in.readFloatBig())
|
||||
, x10_move(in.readFloatBig())
|
||||
, x14_lurkTime(in.readFloatBig())
|
||||
, x18_chargeAttack(x0_propertyCount < 6 ? 0.5f : in.readFloatBig() * .01f)
|
||||
, x1c_numBolts(x0_propertyCount < 7 ? 2 : in.readUint32Big()) {
|
||||
: x0_propertyCount(in.ReadLong())
|
||||
, x4_lurk(in.ReadFloat())
|
||||
, x8_taunt(in.ReadFloat())
|
||||
, xc_attack(in.ReadFloat())
|
||||
, x10_move(in.ReadFloat())
|
||||
, x14_lurkTime(in.ReadFloat())
|
||||
, x18_chargeAttack(x0_propertyCount < 6 ? 0.5f : in.ReadFloat() * .01f)
|
||||
, x1c_numBolts(x0_propertyCount < 7 ? 2 : in.ReadLong()) {
|
||||
float f2 = 1.f / (x10_move + xc_attack + x4_lurk + x8_taunt);
|
||||
x4_lurk *= f2;
|
||||
x8_taunt *= f2;
|
||||
|
||||
Reference in New Issue
Block a user