This is possible with MW2Lua, just add CALLREF(0x0520980, playerEntnum) to the onTick callback.
I tired using the drav way and it wouldn't work so if anyone know a way to get unlimited ammo that would be nice so i can give crazy severs running and allowing xp lobby so people can rank up.
This is possible with MW2Lua, just add CALLREF(0x0520980, playerEntnum) to the onTick callback.
Can you explain in more depth and how to use mw2Lua
Tell me more unless whattttt?
Some mod menus allow you to do it, mine has it but its a private one so I can't send u it sorry, theres a couple on yt that have it if u want to go and look there
No i don't want to make it private sever i want to have unlimited ammo on a public sever like mw2chaos
is there anyhitng like that working right now
Pretty sure that you can only use unlimited ammo in private game lobbies.
In your fire weapon detour:Code:#define IW4_FUNCTION(FUNC_NAME, RETURN_TYPE, ARGUMENTS, ADDRESS) inline RETURN_TYPE(*FUNC_NAME) ARGUMENTS = reinterpret_cast<RETURN_TYPE(*) ARGUMENTS>(ADDRESS) IW4_FUNCTION(Add_Ammo, void, (gentity_s *target, int weaponIndex, char weaponModel, int count, int fillClip), 0x52B530);
Code:for(int k = 0; k < 18; k++){ gentity_s client = g_entities[k]; Game::Add_Ammo(&g_entities[k], Game::BG_GetViewmodelWeaponIndex(&client.client->playerState), 1, 999, 999); }
[IMG]https://*******/1oYV5.gif[/IMG]hunter2