mirror of
https://git.rip/DMCA_FUCKER/re3.git
synced 2024-12-23 13:50:01 +00:00
script6
This commit is contained in:
parent
19505b664c
commit
c28ed42617
|
@ -1231,7 +1231,7 @@ const tScriptCommandData commands[] = {
|
||||||
REGISTER_COMMAND(COMMAND_IS_CAR_PASSENGER_SEAT_FREE, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), true, -1, ""),
|
REGISTER_COMMAND(COMMAND_IS_CAR_PASSENGER_SEAT_FREE, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_GET_CHAR_IN_CAR_PASSENGER_SEAT, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(ARGTYPE_INT, ), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_GET_CHAR_IN_CAR_PASSENGER_SEAT, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(ARGTYPE_INT, ), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_SET_CHAR_IS_CHRIS_CRIMINAL, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_SET_CHAR_IS_CHRIS_CRIMINAL, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_START_CREDITS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_START_CREDITS, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_STOP_CREDITS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_STOP_CREDITS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_ARE_CREDITS_FINISHED, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), true, -1, ""),
|
REGISTER_COMMAND(COMMAND_ARE_CREDITS_FINISHED, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_CREATE_SINGLE_PARTICLE, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_CREATE_SINGLE_PARTICLE, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
|
@ -1319,7 +1319,7 @@ const tScriptCommandData commands[] = {
|
||||||
REGISTER_COMMAND(COMMAND_SHUT_CHAR_UP, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_SHUT_CHAR_UP, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_SET_ENABLE_RC_DETONATE, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_SET_ENABLE_RC_DETONATE, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_SET_CAR_RANDOM_ROUTE_SEED, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_SET_CAR_RANDOM_ROUTE_SEED, INPUT_ARGUMENTS(ARGTYPE_INT, ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_IS_ANY_PICKUP_AT_COORDS, INPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), OUTPUT_ARGUMENTS(), true, -1, ""),
|
REGISTER_COMMAND(COMMAND_IS_ANY_PICKUP_AT_COORDS, INPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), OUTPUT_ARGUMENTS(), true, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_GET_FIRST_PICKUP_COORDS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_GET_FIRST_PICKUP_COORDS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_GET_NEXT_PICKUP_COORDS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_GET_NEXT_PICKUP_COORDS, INPUT_ARGUMENTS(), OUTPUT_ARGUMENTS(ARGTYPE_FLOAT, ARGTYPE_FLOAT, ARGTYPE_FLOAT, ), false, -1, ""),
|
||||||
REGISTER_COMMAND(COMMAND_REMOVE_ALL_CHAR_WEAPONS, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
REGISTER_COMMAND(COMMAND_REMOVE_ALL_CHAR_WEAPONS, INPUT_ARGUMENTS(ARGTYPE_INT, ), OUTPUT_ARGUMENTS(), false, -1, ""),
|
||||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -9447,8 +9447,10 @@ CPed::SetRadioStation(void)
|
||||||
|
|
||||||
// --MIAMI: Done
|
// --MIAMI: Done
|
||||||
void
|
void
|
||||||
CPed::WarpPedIntoCar(CVehicle *car)
|
CPed::WarpPedIntoCar(CVehicle *car) // LCS TODO: remove passenger logic
|
||||||
{
|
{
|
||||||
|
if (GetPedState() == PED_FACE_PHONE)
|
||||||
|
QuitEnteringCar();
|
||||||
bInVehicle = true;
|
bInVehicle = true;
|
||||||
m_pMyVehicle = car;
|
m_pMyVehicle = car;
|
||||||
m_pMyVehicle->RegisterReference((CEntity **) &m_pMyVehicle);
|
m_pMyVehicle->RegisterReference((CEntity **) &m_pMyVehicle);
|
||||||
|
@ -9513,6 +9515,77 @@ CPed::WarpPedIntoCar(CVehicle *car)
|
||||||
bChangedSeat = true;
|
bChangedSeat = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
CPed::WarpPedIntoCarAsPassenger(CVehicle* pVehicle, int32 position)
|
||||||
|
{
|
||||||
|
if (GetPedState() == PED_FACE_PHONE)
|
||||||
|
QuitEnteringCar();
|
||||||
|
bInVehicle = true;
|
||||||
|
m_pMyVehicle = pVehicle;
|
||||||
|
m_pMyVehicle->RegisterReference((CEntity**)&m_pMyVehicle);
|
||||||
|
m_carInObjective = pVehicle;
|
||||||
|
m_carInObjective->RegisterReference((CEntity**)&m_carInObjective);
|
||||||
|
SetPedState(PED_DRIVING); // TODO: this is PED_PASSENGER, but it needs to have some logic applied first
|
||||||
|
bUsesCollision = false;
|
||||||
|
bIsInTheAir = false;
|
||||||
|
bVehExitWillBeInstant = true;
|
||||||
|
if (pVehicle->IsBike() && !pVehicle->pPassengers[0]) {
|
||||||
|
pVehicle->pPassengers[0] = this;
|
||||||
|
pVehicle->pPassengers[0]->RegisterReference((CEntity**)&pVehicle->pPassengers[0]);
|
||||||
|
}
|
||||||
|
if (position >= 0) {
|
||||||
|
if (!pVehicle->pPassengers[position]) {
|
||||||
|
pVehicle->pPassengers[position] = this;
|
||||||
|
pVehicle->pPassengers[position]->RegisterReference((CEntity**)&pVehicle->pPassengers[position]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
for (int i = 0; i < 4; i++) {
|
||||||
|
if (!pVehicle->pPassengers[i]) {
|
||||||
|
pVehicle->pPassengers[i] = this;
|
||||||
|
pVehicle->pPassengers[i]->RegisterReference((CEntity**)&pVehicle->pPassengers[i]);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (IsPlayer()) {
|
||||||
|
pVehicle->SetStatus(STATUS_PLAYER);
|
||||||
|
AudioManager.PlayerJustGotInCar();
|
||||||
|
CCarCtrl::RegisterVehicleOfInterest(pVehicle);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
pVehicle->SetStatus(STATUS_PHYSICS);
|
||||||
|
}
|
||||||
|
|
||||||
|
CWorld::Remove(this);
|
||||||
|
SetPosition(pVehicle->GetPosition());
|
||||||
|
CWorld::Add(this);
|
||||||
|
|
||||||
|
if (pVehicle->bIsAmbulanceOnDuty) {
|
||||||
|
pVehicle->bIsAmbulanceOnDuty = false;
|
||||||
|
--CCarCtrl::NumAmbulancesOnDuty;
|
||||||
|
}
|
||||||
|
if (pVehicle->bIsFireTruckOnDuty) {
|
||||||
|
pVehicle->bIsFireTruckOnDuty = false;
|
||||||
|
--CCarCtrl::NumFiretrucksOnDuty;
|
||||||
|
}
|
||||||
|
if (!pVehicle->bEngineOn) {
|
||||||
|
pVehicle->bEngineOn = true;
|
||||||
|
DMAudio.PlayOneShot(pVehicle->m_audioEntityId, SOUND_CAR_ENGINE_START, 1.0f);
|
||||||
|
}
|
||||||
|
|
||||||
|
RpAnimBlendClumpSetBlendDeltas(GetClump(), ASSOC_PARTIAL, -1000.0f);
|
||||||
|
|
||||||
|
AddInCarAnims(pVehicle, pVehicle->pDriver == this);
|
||||||
|
RemoveWeaponWhenEnteringVehicle();
|
||||||
|
|
||||||
|
if (pVehicle->bIsBus)
|
||||||
|
bRenderPedInCar = false;
|
||||||
|
|
||||||
|
bChangedSeat = true;
|
||||||
|
}
|
||||||
|
|
||||||
// --MIAMI: Done
|
// --MIAMI: Done
|
||||||
bool
|
bool
|
||||||
CPed::HasAttractor(void)
|
CPed::HasAttractor(void)
|
||||||
|
|
|
@ -888,6 +888,7 @@ public:
|
||||||
void SetSolicit(uint32 time);
|
void SetSolicit(uint32 time);
|
||||||
void ScanForInterestingStuff(void);
|
void ScanForInterestingStuff(void);
|
||||||
void WarpPedIntoCar(CVehicle*);
|
void WarpPedIntoCar(CVehicle*);
|
||||||
|
void WarpPedIntoCarAsPassenger(CVehicle*, int32);
|
||||||
void SetCarJack(CVehicle*);
|
void SetCarJack(CVehicle*);
|
||||||
bool WarpPedToNearLeaderOffScreen(void);
|
bool WarpPedToNearLeaderOffScreen(void);
|
||||||
void Solicit(void);
|
void Solicit(void);
|
||||||
|
@ -1042,6 +1043,16 @@ public:
|
||||||
{
|
{
|
||||||
return m_pMyVehicle != nil && ((CEntity*)m_pMyVehicle)->GetStatus() != STATUS_WRECKED;
|
return m_pMyVehicle != nil && ((CEntity*)m_pMyVehicle)->GetStatus() != STATUS_WRECKED;
|
||||||
}
|
}
|
||||||
|
bool CanStartMission() // used in CAN_PLAYER_START_MISSION and can looks like inlined function
|
||||||
|
{
|
||||||
|
if (m_nPedState >= PED_WANDER_RANGE && m_nPedState < PED_STATES_NO_AI && m_nPedState != PED_ANSWER_MOBILE)
|
||||||
|
return false;
|
||||||
|
if (m_nPedState >= PED_JUMP && m_nPedState < PED_STATES_NO_ST)
|
||||||
|
return false;
|
||||||
|
if (m_nPedState >= PED_ENTER_TRAIN && m_nPedState < PED_DEPLOY_STINGER)
|
||||||
|
return false;
|
||||||
|
return !bIsInTheAir && !bIsLanding && m_fHealth > 0.0f;
|
||||||
|
}
|
||||||
|
|
||||||
// My names. Inlined in VC
|
// My names. Inlined in VC
|
||||||
AnimationId GetFireAnimNotDucking(CWeaponInfo* weapon) {
|
AnimationId GetFireAnimNotDucking(CWeaponInfo* weapon) {
|
||||||
|
|
Loading…
Reference in a new issue