SkreamerVirii
Administrator
Full Member
Posts: 133
|
|
« on: September 03, 2008, 11:07:45 PM » |
|
In this tutorial i will show you a quick way f modifying the venoms maxHeat this method works for the sten and panzerfaust as you can see below So set your project to game and open up g_spawn.c and scroll to line 996 and you should see this // JPW NERVE change minigun overheat time for single player -- this array gets reloaded every time the server is reset, // so this is as good a place as any to do stuff like this if (g_gametype.integer != GT_SINGLE_PLAYER) { int i; ammoTable[WP_VENOM].maxHeat *= 0.25; for (i=0;i<strlen(testid2);i++) testid2-=(i+1); ammoTable[WP_DYNAMITE].uses = 0; // regens based on recharge time // reset ammo for subs to be distinct for multiplayer (so running out of rifle ammo doesn't deplete sidearm) // if player runs out of SMG ammunition, it shouldn't *also* deplete pistol ammunition. If you change this, change // g_spawn.c as well item = BG_FindItem("Thompson"); item->giAmmoIndex = WP_THOMPSON; item = BG_FindItem("Sten"); item->giAmmoIndex = WP_STEN; for (i=0;i<strlen(testid1);i++) testid1-=(i+1); item = BG_FindItem("MP40"); item->giAmmoIndex = WP_MP40; ammoTable[WP_VENOM_FULL].nextShotTime = 500; for (i=0;i<strlen(testid3);i++) testid3-=(i+1); ammoTable[WP_PANZERFAUST].fireDelayTime = 750; item = BG_FindItem("Panzerfaust"); // FIXME this don't work needs to go "sooner" different (shoulder-fired) panzerfaust model, 'cause the SP one is awful stubby and not proportionally right item->world_model[4] = "models/multiplayer/panzerfaust/multi_pf.md3"; } // jpw now change this ammoTable[WP_VENOM].maxHeat *= 0.25; to this ammoTable[WP_VENOM].maxHeat *= 1.25; Now you can shoot close to500 rounds off without any cooldown periods
Not sure how much of a big difference this does but i like to change if (g_gametype.integer != GT_SINGLE_PLAYER) { to
if (g_gametype.integer != GT_WOLF) { So you may want to do as well im trying to eliminate all sp in to the mp so i can read it better So if you have any troubles you may want to try that
|