Physical: Push and Pull acceleration is now an Action property

Günther Brammer 2010-12-11 23:28:01 +01:00
parent fea3b20269
commit b63940742e
6 changed files with 3 additions and 6 deletions

View File

@ -36,5 +36,4 @@ Breath=50000
Jump=35000
Dig=40000
Throw=50000
Push=40000
CanDig=1

View File

@ -32,7 +32,6 @@ Breath=100000
Jump=40000
Dig=40000
Throw=50000
Push=40000
CanDig=1
CanConstruct=1
CanChop=1

View File

@ -2020,6 +2020,7 @@ Push = {
Name = "Push",
Procedure = DFA_PUSH,
Speed = 196,
Accel = 100,
Directions = 2,
Length = 8,
Delay = 15,

View File

@ -173,7 +173,6 @@ struct C4PhysInfoNameMap_t { const char *szName; C4PhysicalInfo::Offset off; } C
{ "Jump", &C4PhysicalInfo::Jump },
{ "Dig", &C4PhysicalInfo::Dig },
{ "Throw", &C4PhysicalInfo::Throw },
{ "Push", &C4PhysicalInfo::Push },
{ "Magic", &C4PhysicalInfo::Magic },
{ "Float", &C4PhysicalInfo::Float },
{ "CanScale", &C4PhysicalInfo::CanScale },

View File

@ -43,7 +43,6 @@ public:
int32_t Jump;
int32_t Dig;
int32_t Throw;
int32_t Push;
int32_t Magic;
int32_t CanScale;
int32_t CanHangle;

View File

@ -4257,7 +4257,7 @@ void C4Object::ExecAction()
case COMD_Stop: case COMD_Down: iTXDir=0; break;
}
// Push object
if (!Action.Target->Push(iTXDir,ValByPhysical(250, pPhysical->Push),fStraighten))
if (!Action.Target->Push(iTXDir,accel,fStraighten))
{ StopActionDelayCommand(this); return; }
// Set target controller
Action.Target->Controller=Controller;
@ -4325,7 +4325,7 @@ void C4Object::ExecAction()
iTXDir = fMove + fWalk * BoundBy<int32_t>(iPullX-Action.Target->GetX(),-10,+10) / 10;
// Push object
if (!Action.Target->Push(iTXDir,ValByPhysical(250, pPhysical->Push),false))
if (!Action.Target->Push(iTXDir,accel,false))
{ StopActionDelayCommand(this); return; }
// Set target controller
Action.Target->Controller=Controller;