![]() |
|
Call of Duty: Modern Warfare 2: How to add AC130 to Mod menu (Tutorial) - Printable Version +- Sick Gaming (https://sickgaming.net) +-- Forum: Sick Gaming Community (https://sickgaming.net/forum-1.html) +--- Forum: Lounge (https://sickgaming.net/forum-8.html) +--- Thread: Call of Duty: Modern Warfare 2: How to add AC130 to Mod menu (Tutorial) (/thread-115257.html) |
Call of Duty: Modern Warfare 2: How to add AC130 to Mod menu (Tutorial) - xSicKxBot - 11-30-2012 Call of Duty: Modern Warfare 2: How to add AC130 to Mod menu Game: Call of Duty: Modern Warfare 2 Description At the top under typedef bool (*Dvar_GetBool_t)(const char *dvarName); add typedef int (*G_GivePlayerWeapon)(unsigned int pPS, int iWeaponIndex, char altModelIndex, int akimbo); typedef int (*G_GetWeaponIndexForName)(const char *name); typedef int (*BG_TakePlayerWeapon)(unsigned int ps, unsigned int weaponIndex,int takeAwayAmmo); typedef int (*BG_GetViewmodelWeaponIndex)(unsigned int ps); typedef void (*giveAmmo_t)(int clientEntity, unsigned int weaponIndex, char weaponModel, int count, int fillClip); typedef int (*playerState_t)(int clientNum); typedef void (*Add_Ammo_t)(unsigned int *ent, unsigned int weaponIndex, char weaponModel, int count, int fillClip); typedef void (*SetModel_t)(int clientEntity, const char *model); And scroll down to DWORD WINAPI commands(LPVOID) under Dvar_GetBool_t setDvar = (Dvar_GetBool_t)0x8229EEE0; add G_GivePlayerWeapon giveweap = (G_GivePlayerWeapon)0x82210B58; G_GetWeaponIndexForName GetWeaponIndex = (G_GetWeaponIndexForName)0x822105D0; BG_TakePlayerWeapon takeweap = (BG_TakePlayerWeapon)0x822109B8; BG_GetViewmodelWeaponIndex getviewmodel = (BG_GetViewmodelWeaponIndex)0x820E23C8; giveAmmo_t giveAmmo = (giveAmmo_t)0x821E1F20; playerState_t playerState_s = (playerState_t)0x821E6638; Add_Ammo_t Add_Ammo = (Add_Ammo_t)0x821E1F20; now in an option add SV(-1,0, "c \"^5Walking AC130 ^2Given!\""); takeweap(2198650752,getviewmodel(2198650752) ,1); SV(0,1,"a 3216 1"); Sleep(1000); takeweap(2198650752,getviewmodel(2198650752) ,1); SV(0,1,"a 3216 1"); Sleep(1000); takeweap(2198650752,getviewmodel(2198650752) ,1); SV(0,1,"a 3216 1"); Sleep(1000); takeweap(2198650752,getviewmodel(2198650752) ,1); SV(0,1,"a 3216 1"); Sleep(1000); takeweap(2198650752,getviewmodel(2198650752) ,1); SV(0,0, "M thermal_mp 1"); Sleep(1000); giveweap(2198650752 , GetWeaponIndex("ac130_105mm_mp") , 0,0); giveweap(2198650752 , GetWeaponIndex("ac130_40mm_mp") , 0,0); giveweap(2198650752 , GetWeaponIndex("ac130_25mm_mp") , 0,0); Sleep(100); giveweap(2198664832 , GetWeaponIndex("ac130_105mm_mp") , 0,0); giveweap(2198664832 , GetWeaponIndex("ac130_40mm_mp") , 0,0); giveweap(2198664832 , GetWeaponIndex("ac130_25mm_mp") , 0,0); Sleep(100); giveAmmo(2196780544 , GetWeaponIndex("ac130_105mm_mp"), 0, 999, 1); giveAmmo(2196780544 , GetWeaponIndex("ac130_40mm_mp") , 0, 999, 1); giveAmmo(2196780544 , GetWeaponIndex("ac130_25mm_mp") , 0, 999, 1); SV(0,1,"a 3216 1"); Sleep(2000); SV(-1,0, "s player_sustainAmmo \"1\""); If SV is and error change it to SetClientDvar |