《GTA5》中如何制作一个最简单的内置修改器?今天给大家带来玩家“AMD核弹295x2”分享的制作方法,一起来看看吧。
首先你需要一份VS2013 一份NT大神的SDK
VS2013是一个开发环境就这样
其实,内置是调用GTA5开发人员的接口实现功能的
先建一个菜单吧.......
摆个样子
void process_main_menu()
{
const float lineWidth = 300.0;
const int lineCount = 10;
std::string caption = "NATIVE TRAINER ";
static LPCSTR lineCaption[lineCount] = {
"BY:乌龟哥 QQ群:436343750"
"玩家选项",
"武器选项",
"载具选项",
"世界选项",
"时间选项",
"天气选项",
"其余杂项"
"线上解锁",
"等级修改",
};
DWORD waitTime = 150;
然后给这个菜单增加按键映射
if (bSelect)
{
menu_beep();
switch (activeLineIndexMain)
{
case 0:
process_player_menu();
break;
case 1:
process_weapon_menu();
break;
case 2:
process_veh_menu();
break;
case 3:
process_world_menu();
break;
case 4:
process_time_menu();
break;
case 5:
process_weather_menu();
break;
case 6:
process_misc_menu();
break;
case 7:
process_rec_menu();
break;
case 8:
process_level_menu();
break;
case 9:
process_about_menu();
break;
}
waitTime = 200;
就是判断谁被选中 就打开那个子菜单
传说中的刷钱代码
OBJECT::CREATE_AMBIENT_PICKUP(GAMEPLAY::GET_HASH_KEY("PICKUP_MONEY_CASE"), ENTPOS.x, ENTPOS.y, ENTPOS.z, 0, 40000, 1, 0, 1);
OBJECT::CREATE_AMBIENT_PICKUP(GAMEPLAY::GET_HASH_KEY("PICKUP_MONEY_VARIABLE"), ENTPOS.x, ENTPOS.y, ENTPOS.z, 0, 50000, 1, 0, 1);
OBJECT::CREATE_AMBIENT_PICKUP(GAMEPLAY::GET_HASH_KEY("PICKUP_MONEY_MED_BAG"), ENTPOS.x, ENTPOS.y, ENTPOS.z, 0, 50000, 1, 0, 1);
//OBJECT::CREATE_AMBIENT_PICKUP(GAMEPLAY::GET_HASH_KEY("prop_money_bag_01"), ENTPOS.x, ENTPOS.y, ENTPOS.z, 0, 60000, 1, false, true);
/*
STREAMING::REQUEST_MODEL(GAMEPLAY::GET_HASH_KEY("prop_money_bag_01"));
while (!STREAMING::HAS_MODEL_LOADED(GAMEPLAY::GET_HASH_KEY("prop_money_bag_01")))
{
OBJECT::CREATE_AMBIENT_PICKUP(GAMEPLAY::GET_HASH_KEY("PICKUP_MONEY_MED_BAG"), ENTPOS.x, ENTPOS.y, ENTPOS.z, 0, 10000, GAMEPLAY::GET_HASH_KEY("prop_money_bag_01"), 0, 1);
}
STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED(GAMEPLAY::GET_HASH_KEY("prop_money_bag_01"));
(未完待续)
以上就是《GTA5》最简单的内置修改器制作方法介绍,感兴趣的玩家们可以尝试一下。