Help with weapons editing... -1 reply

Please wait...

11bhooah

I'm too cool to Post

50 XP

17th September 2006

0 Uploads

13 Posts

0 Threads

#1 11 years ago

We've been trying to edit the amount of frags, in our Revolt mod for our LAN. 1 is just not enough. I've successfully edited the pistol mag count, and other small things. However I can not get the frags to work. I've edited the clip amount, start ammo, max ammo, min ammo, etc. All the things I've thought would change it, even slot stackable. But to no luck. Below is the frag string, sorry its a bit long. If someone could please help me with this it would be much appreciated. I highlighted the places I have tried to change. This however is a copy of the orginial string. Thanks in advance... WEAPONFILE\weaponType\grenade\weaponClass\grenade\displayName\WEAPON_M2FRAGGRENADE\ AIOverlayDescription\\modeName\\gunModel\viewmodel_Frag_Grenade\handModel\viewmodel_hands_new\ idleAnim\viewmodel_grenade_idle\emptyIdleAnim\viewmodel_mk1_empty\fireAnim\viewmodel_grenade_throw\ holdFireAnim\viewmodel_grenade_pullpin\lastShotAnim\viewmodel_grenade_lastthrow\meleeAnim\punch_melee\ raiseAnim\viewmodel_grenade_pullout\dropAnim\viewmodel_grenade_putaway\altRaiseAnim\viewmodel_grenade_idle\ altDropAnim\viewmodel_grenade_idle\weaponSlot\grenade\slotStackable\0\moveSpeedScale\1.2\damage\ 0\meleeDamage\50\fireDelay\0.1\meleeDelay\0.1\fireTime\1\holdFireTime\0.6\meleeTime\0.66\reloadTime\2\dropTime\0.25\raiseTime\ 0.25\altDropTime\0.05\altRaiseTime\0.05\fuseTime\3\ clipOnly\1\hipIdleAmount\80\idleCrouchFactor\0.5\idleProneFactor\ 0.15\swayMaxAngle\30\swayLerpSpeed\6\swayPitchScale\0.1\swayYawScale\0.1\swayHorizScale\0.1\swayVertScale\0.1\swayShellShockScale\ 5\radiantName\mpweapon_fraggrenade\worldModel\xmodel/weapon_Frag_Grenade\hudIcon\gfx/icons/hud@frag_grenade\modeIcon\\ ammoIcon\gfx/icons/hud@frag_grenade\ammoName\grenade\maxAmmo\1\startAmmo\1\clipName\grenade\clipSize\1\ sharedAmmoCapName\grenades\ sharedAmmoCap\1\ dropAmmoMin\0\dropAmmoMax\1\pickupSound\weap_pickup\ammoPickupSound\\pullbackSound\weap_fraggrenade_pin\ fireSound\weap_fraggrenade_fire\lastShotSound\\reloadSound\weap_fraggrenade_reload\altSwitchSound\\raiseSound\\putawaySound\\ noteTrackSoundA\\noteTrackSoundB\\noteTrackSoundC\\noteTrackSoundD\\reticleCenter\\reticleSide\\reticleCenterSize\32\reticleSideSize\16\ reticleMinOfs\4\altWeapon\mk1britishfrag_mp\twoHanded\0\cookOffHold\0\wideListIcon\0\killIcon\gfx/icons/hud@frag_grenade.dds\wideKillIcon\ 0\standMoveF\0\standMoveR\1\standMoveU\-1.5\standRotP\0\standRotY\0\standRotR\0\duckedOfsF\-2\duckedOfsR\2\duckedOfsU\-0.2\duckedMoveF\ 0\duckedMoveR\1\duckedMoveU\-1.5\duckedRotP\0\duckedRotY\0\duckedRotR\0\proneOfsF\-6\proneOfsR\3.5\proneOfsU\0.8\proneMoveF\0\ proneMoveR\1\proneMoveU\-1.5\proneRotP\0\proneRotY\0\proneRotR\0\posMoveRate\4\posProneMoveRate\10\standMoveMinSpeed\110\ duckedMoveMinSpeed\60\proneMoveMinSpeed\0\posRotRate\5\posProneRotRate\10\standRotMinSpeed\110\duckedRotMinSpeed\60\ proneRotMinSpeed\0\explosionRadius\350\explosionInnerDamage\120\explosionOuterDamage\5\projectileSpeed\960\projectileSpeedUp\120\ projectileModel\xmodel/weapon_Frag_Grenade\projExplosionType\grenade\projExplosionEffect\\projExplosionSound\\projectileTrail\none\ projectileTrailTime\1\projectileTrailRadius\32\projImpactExplode\0




Gift

unDutchable

50 XP

23rd February 2004

0 Uploads

6,449 Posts

0 Threads

#2 11 years ago

Could you please repost that lol? You stretched out the whole page :p

/Moved to Modding & Editing




moviestar

I'm STILL too cool to post

50 XP

21st May 2006

0 Uploads

122 Posts

0 Threads

#3 11 years ago

I cant remember the exact workings in revolt but there will be a ranking loadout file that gives the correct amount of ammo/grenades for your rank, it will be this stopping you adding more nades and it is this that needs altering along with the weapons file. Like i said its been a while since i looked at revolt but the loadout file is normaly in the maps/gametypes/_loadout.gsc but i doubt it will be called that in revolt.




11bhooah

I'm too cool to Post

50 XP

17th September 2006

0 Uploads

13 Posts

0 Threads

#4 11 years ago

I found this string, however I'm not exactly sure what to change. I changed the only number I saw from 0 to 4. This completely removed the frags. Any ideas? Thanks again in advance... // ################# GRENADE LOADOUT ######################## giveGrenades(spawnweapon) { if(self.pers["team"] == "allies") { switch(game["allies"]) { case "american": grenadetype = "fraggrenade_mp"; break; } } else if(self.pers["team"] == "axis") { switch(game["axis"]) { case "german": grenadetype = "fraggrenade_mp"; break; } } if(isDefined(self.grenadecount)) { currentgrenades = self getWeaponSlotAmmo("grenade"); if(currentgrenades != self.grenadecount) return; } self takeWeapon("fraggrenade_mp");

newcount = getWeaponBasedGrenadeCount(spawnweapon); if(newcount > 0) { self setWeaponSlotWeapon("grenade", grenadetype); self setWeaponSlotClipAmmo("grenade", newcount); } self.grenadecount = newcount; }

getWeaponBasedGrenadeCount(weapon) { switch(weapon) { case "m4_mp": case "m4_bayo_addon": case "m4_reddot_addon": case "m4_silenced_addon": case "m16_mp": case "m16_bayo_addon": case "m16_reddot_addon": case "m16_miniscope_addon": case "m14_mp": case "m14_bayo_addon": case "m14_miniscope_addon": case "m14_scoped_addon": case "mp5_mp": case "ak74_mp": case "ak74_bayo_addon": case "ak74_reddot_addon": case "ak74_silenced_addon": case "ak47_mp": case "ak47_bayo_addon": case "ak47_reddot_addon": case "ak47_miniscope_addon": case "g3a3_mp": case "g3a3_bayo_addon": case "g3a3_miniscope_addon": case "g3a3_scoped_addon": case "uzi_mp": return 1; } }

isPistolOrGrenade(weapon) { switch(weapon) { case "m9_mp": case "tariq_mp": case "fraggrenade_mp": //case "fraggrenade_mp": return true; default: return false; }




Goliath_01

Who shall watch the watchers?

50 XP

15th April 2006

0 Uploads

112 Posts

0 Threads

#5 11 years ago

the Pak_Rev_02.pk3 contains _rank_gmi.gsc which may be what you have to fiddle with. You would probably be best to extract this file, then edit it, then place it in a mod which loads after the REVOLT mod to maintain 'PURE' status if you play REVOLT online




11bhooah

I'm too cool to Post

50 XP

17th September 2006

0 Uploads

13 Posts

0 Threads

#6 11 years ago

In the revolt mod there is only one .pk3 file, that is Revolt_1x.pk3. I have looked through all the files the above post is the only grenade loadout file in there. I just need to know what I need to edit in that string to have 4 grenads. Were deployed in Afghanistan, so we only use a LAN network in our rooms. So changing the file permantely is not a big deal, since I have already backed up the orginal anyway. Any help would be appreciated, since I have been messing with this for awhile. Thanks in advance...




Tally

COD Über Support

50 XP

20th November 2004

0 Uploads

3,439 Posts

0 Threads

#7 11 years ago

To increase the grenade count you edit the file you quoted at getWeaponBasedGrenadeCount(weapon):

switch(weapon) { case "m4_mp": case "m4_bayo_addon": case "m4_reddot_addon": case "m4_silenced_addon": case "m16_mp": case "m16_bayo_addon": case "m16_reddot_addon": case "m16_miniscope_addon": case "m14_mp": case "m14_bayo_addon": case "m14_miniscope_addon": case "m14_scoped_addon": case "mp5_mp": case "ak74_mp": case "ak74_bayo_addon": case "ak74_reddot_addon": case "ak74_silenced_addon": case "ak47_mp": case "ak47_bayo_addon": case "ak47_reddot_addon": case "ak47_miniscope_addon": case "g3a3_mp": case "g3a3_bayo_addon": case "g3a3_miniscope_addon": case "g3a3_scoped_addon": case "uzi_mp": return 1; [color=red]<----------- change this to your amount[/color] }

Then, get yourself a weapon file editor (google for one, or visit codfiles.com for a download). Pull out each of the frag grenade weapon files from the Revolt mod. You must increase the startAmmo to dictate the max start ammo (say, for exmaple 3) and the clipSize to a max amount (say for example, 3).

If you dont do this, you will be stuck with 1, as that is what the Revolt team limited it to.

Another way to change the amount of nades, and have it controlled by server cvar is to have something like this:

getWeaponBasedGrenadeCount(weapon) { nadeCount = 0;

switch(weapon) { case "m4_mp": case "m4_bayo_addon": case "m4_reddot_addon": case "m4_silenced_addon": case "m16_mp": case "m16_bayo_addon": case "m16_reddot_addon": case "m16_miniscope_addon": case "m14_mp": case "m14_bayo_addon": case "m14_miniscope_addon": case "m14_scoped_addon": case "mp5_mp": case "ak74_mp": case "ak74_bayo_addon": case "ak74_reddot_addon": case "ak74_silenced_addon": case "ak47_mp": case "ak47_bayo_addon": case "ak47_reddot_addon": case "ak47_miniscope_addon": case "g3a3_mp": case "g3a3_bayo_addon": case "g3a3_miniscope_addon": case "g3a3_scoped_addon": case "uzi_mp": nadeCount = getcvarInt("sv_nade_number"); break; } return nadeCount;

}

Then, in your server config file, you put:

set sv_nade_number "3" (or how ever many you want)

DO NOT PUTE THE EDITED FILE BACK IN REVOLT

If you do that, the other players will receive an unpure file error.

Put the edited files in a new pk3 file, and name it something like zzz_nade_mod.pk3. This will over-wirte the Revolt mod, and take effect on your server.




moviestar

I'm STILL too cool to post

50 XP

21st May 2006

0 Uploads

122 Posts

0 Threads

#8 11 years ago

Just to add on what tally said, There are 4 grenade weapon files in revolt not just the one you quoted: Fraggrenade_mp mk1britishfrag_mp rgd_33russianfrag_mp Stielhandgranate_mp Only the fraggrenade is precached and used like you quoted but the mk1britishfrag is its alt weapon mode (Cookoff hold) so that one needs altering EXACTLY the same. Why the other 2 grenade files are in there i have no idea :confused: i guess they just wanted the extra kb on the mod :lol:




11bhooah

I'm too cool to Post

50 XP

17th September 2006

0 Uploads

13 Posts

0 Threads

#9 11 years ago

That was it! I used your first suggestion, and it works like a champ. You just made a bunch of bored grunts really happy. Now we can frag the shit out of eachother. Now comes the hard part...Creating smoke grenades :rolleyes: if you know how to do this, or a good way to start the information would be much appreciated. Also I didn't need an editor to edit the frag files. I just unzipped the .pk3 with winzip, and edited the files with notepad. The re-zipped, and re-named to .pk3, thanks again...




Tally

COD Über Support

50 XP

20th November 2004

0 Uploads

3,439 Posts

0 Threads

#10 11 years ago

Ive got a smoke grenade mod for COD1. I will have to edit it to make it compatable with Revolt. I'll post it up tomorrow when Im done.