forked from NeDether/Rattler-Spore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpawnBee.cpp
96 lines (81 loc) · 3.55 KB
/
SpawnBee.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include "stdafx.h"
#include "SpawnBee.h"
#include "SkondEmpire.h"
using namespace Simulator;
SpawnBee::SpawnBee()
{
}
SpawnBee::~SpawnBee()
{
}
void SpawnBee::ParseLine(const ArgScript::Line& line)
{
//Tech Level 32 = Skond Planet
//Tech Level 31 = Ra'Tal Planet
//Tech Level 30 = Pirate Planet
auto StarRecord = GetActiveStarRecord();
//GetActiveStarRecord()->mTechLevel = TechLevel::Empire legit screws it up;
auto SelectedSpecies = SpeciesManager.GetSpeciesProfile({ 0x23E33E31, TypeIDs::crt, GroupIDs::CreatureModels });
StarRecord->mpSpeciesProfile = SelectedSpecies;
StarRecord->mCitizenSpeciesKey = ResourceKey({ 0x23E33E31, TypeIDs::crt, GroupIDs::CreatureModels });
StarRecord->mEmpireID = SkondEmpireA.Skond->GetEmpireID();
GetActivePlanetRecord()->mTechLevel = TechLevel::Empire;
GetActivePlanetRecord()->mNumDefenderUFOs = 25;
SkondEmpireA.Skond->mIDColorID = (int)IdentityColors::Pink;
//SkondEmpireA.Skond->UpdateAndGetColor();
//StarRecord->mTechLevel = (TechLevel::City);
//cPlanetRecord::FillPlanetDataForTechLevel(GetActivePlanetRecord(), TechLevel::Empire);
//GetActivePlanetRecord()->mTechLevel = (TechLevel)32;
//GetActivePlanetRecord()->mTechLevel = (TechLevel::City);
GetActivePlanetRecord()->mSpiceGen = ResourceKey({ id("spice6"),0,0 });
GetActivePlanetRecord()->mPlanetRing = 5;
//GetActivePlanetRecord()->field_10C = 1; //followers?
//ResourceKey({ 0x23B66448, TypeIDs::bld, GroupIDs::BuildingModels }); Node Model
//ResourceKey({ 0x23B66453, TypeIDs::ufo, GroupIDs::UFOModels }); Swarmer Model
//auto hive = simulator_new<cToolObject>();
//hive->SetModelKey(ResourceKey({ 0x23B66448, TypeIDs::bld, GroupIDs::BuildingModels }));
//hive->SetPosition(GetPlayerUFO()->GetPosition());
//hive->SetOrientation(PlanetModel.GetOrientation(hive->GetPosition(), Vector3(0, 0, 1)));
//hive->SetHealthPoints(50);
//hive->mMaxHealthPoints = 50;
//hive->SetIsOnView(true);
//auto mario = Simulator::GetData<cToolObject>();
//for (auto skibidi : mario) {
// App::ConsolePrintF("my fucking limit");
// vehicle is a cVehicle*
//}
// auto honey = simulator_new<cPlanetaryArtifact>();
//honey->SetPosition(GetPlayerUFO()->GetPosition());
//honey->SetOrientation(PlanetModel.GetOrientation(hive->GetPosition(), Vector3(0, 0, 1)));
// honey->LoadFromItem(SpaceInventoryItemType::TradingObject, { id("spice6"), 0, 0 }, 1, true);
//auto wasp = simulator_new<cGameDataUFO>();
//cVehiclePtr vehicle = simulator_new<cVehicle>();
//vehicle->Load(kVehicleLand, kVehicleMilitary, { 0x19A3A9AC, TypeIDs::vcl, GroupIDs::VehicleModels });
//wasp->SetModelKey(ResourceKey({ 0x23B66453, TypeIDs::ufo, GroupIDs::UFOModels }));
//wasp->SetPosition(GetPlayerUFO()->GetPosition());
//wasp->SetHealthPoints(50);
//wasp->mMaxHealthPoints = 50;
//wasp->mUFOType = 0;
//wasp->mDesiredModelKey((ResourceKey({ 0x23B66453, TypeIDs::ufo, GroupIDs::UFOModels })));
//wasp->SetIsOnView(true);
//wasp->mNextPosition(Vector3{577,114,808});
//wasp->mNextOrientation(Vector4{0.23,0.198,0.82,0.47});
//wasp->mZoomAltitude=1000.0;
//wasp->field_6B4=1;
//wasp->field_6B8=1;
//wasp->field_78C=true;
//wasp->mpNPCMediumAirWeapon=ResourceKey({0x2eaac830,0,0});
//wasp->mpNPCNearAirWeapon=ResourceKey({0x2eaad0a8,0,0});
// wasp->field_7D8=548072760;
// This method is called when your cheat is invoked.
// Put your cheat code here.
}
const char* SpawnBee::GetDescription(ArgScript::DescriptionMode mode) const
{
if (mode == ArgScript::DescriptionMode::Basic) {
return "This cheat does something.";
}
else {
return "SpawnBee: Elaborate description of what this cheat does.";
}
}