PDA

View Full Version : How to edit variables for Weapons/mp or sp


imported_MMS_Wyatt_Earp
11-06-2003, 12:55 PM
Wyatt here, weapon running speed mod 101


First copy pak0.pk3 to a new folder, then rename from pak0.pk3 to pak0.zip (or rar). Un-archive it. To its own pak0 folder.
Inside you will see many folders, open the weapons folder. Here you will have 2 more folders, MP = multiplayer and SP = single player. Depending on your gametype.

NOTE:: All the files are not associated with any filetype..

Second, get an editor like Texpad from Texpad.com or use notepad.
(notepad bunches all the variables and instances together, harder to read)
Open any of the files with your editor. The formatting of the file is horizontal from right to left. Below, is crammed into this frame :(
Otherwise you would see the Instances and methods() in a long string from left to right. Which is better to read, because you can follow the architecture of the line.



This is the BAR file.
WEAPONFILE\weaponType\bullet\weaponClass\rifle\dis playName\WEAPON_BAR\AIOverlayDescription\WEAPON_SU PPORTGUNNER\modeName\WEAPON_FASTAUTO\gunModel\view model_BAR\handModel\viewmodel_hands_new\idleAnim\v iewmodel_bar_idle\emptyIdleAnim\\fireAnim\viewmode l_bar_firefast\lastShotAnim\viewmodel_bar_fire\rec hamberAnim\\meleeAnim\viewmodel_bar_melee\reloadAn im\viewmodel_bar_reload\reloadEmptyAnim\viewmodel_ bar_reload_empty\reloadStartAnim\\reloadEndAnim\\r aiseAnim\viewmodel_bar_pullout\dropAnim\viewmodel_ bar_putaway\altRaiseAnim\viewmodel_bar_switch\altD ropAnim\viewmodel_bar_switch\adsFireAnim\viewmodel _bar_ADS_fire\adsLastShotAnim\viewmodel_bar_ADS_fi re\adsRechamberAnim\\adsUpAnim\viewmodel_bar_ADS_u p\adsDownAnim\viewmodel_bar_ADS_down\weaponSlot\pr imary\moveSpeedScale\0.75\damage\70\meleeDamage\20 0\fireDelay\0\meleeDelay\0.15\reloadTime\3.8\reloa dEmptyTime\3.8\reloadAddTime\2.33\reloadStartTime\ 0\reloadStartAddTime\0\reloadEndTime\0\fireTime\0. 11\rechamberTime\0.1\rechamberBoltTime\0\meleeTime \0.95\dropTime\0.33\raiseTime\0.4\altDropTime\0.66 \altRaiseTime\0\adsTransInTime\0.36\adsTransOutTim e\0.43\adsZoomFov\55\adsZoomInFrac\0.42\adsZoomOut Frac\0.5\adsOverlayShader\\adsOverlayReticle\none\ adsOverlayWidth\220\adsOverlayHeight\220\adsBobFac tor\2\adsViewBobMult\0.25\hipSpreadStandMin\1.25\h ipSpreadDuckedMin\0.6\hipSpreadProneMin\0.15\hipSp readMax\5\hipSpreadDecayRate\3\hipSpreadFireAdd\0. 42\hipSpreadTurnAdd\0.8\hipSpreadMoveAdd\6.2\hipSp readDuckedDecay\1.005\hipSpreadProneDecay\1.07\hip ReticleSidePos\0\adsSpread\0.3\adsIdleAmount\28\hi pIdleAmount\30\idleCrouchFactor\0.75\idleProneFact or\0.25\gunMaxPitch\3\gunMaxYaw\3\adsAimPitch\0\ad sCrosshairInFrac\1\adsCrosshairOutFrac\0.2\adsRelo adTransTime\0.6\adsTransBlendTime\0.1\adsGunKickPi tchMin\-35\adsGunKickPitchMax\-30\adsGunKickYawMin\-20\adsGunKickYawMax\28\adsGunKickAccel\400\adsGunK ickSpeedMax\1000\adsGunKickSpeedDecay\100\adsGunKi ckStaticDecay\2\adsViewKickPitchMin\60\adsViewKick PitchMax\65\adsViewKickYawMin\-55\adsViewKickYawMax\-35\adsViewKickCenterSpeed\1400\hipGunKickPitchMin\-38\hipGunKickPitchMax\-45\hipGunKickYawMin\-2\hipGunKickYawMax\18\hipGunKickAccel\1000\hipGunK ickSpeedMax\1200\hipGunKickSpeedDecay\100\hipGunKi ckStaticDecay\100\hipViewKickPitchMin\70\hipViewKi ckPitchMax\75\hipViewKickYawMin\-30\hipViewKickYawMax\35\hipViewKickCenterSpeed\120 0\swayMaxAngle\3\swayLerpSpeed\4\swayPitchScale\0. 1\swayYawScale\0.1\swayHorizScale\0.12\swayVertSca le\0.1\swayShellShockScale\5\adsSwayMaxAngle\2\ads SwayLerpSpeed\5\adsSwayPitchScale\0.1\adsSwayYawSc ale\0.1\adsSwayHorizScale\0.1\adsSwayVertScale\0.0 9\radiantName\mpweapon_bar\worldModel\xmodel/weapon_bar\hudIcon\gfx/icons/hud@bar_fullauto.dds\modeIcon\gfx/hud/hud@weaponmode_full.tga\ammoIcon\gfx/icons/hud@ammo5.tga\ammoName\BAR\maxAmmo\300\startAmmo\2 00\clipName\BAR\clipSize\20\dropAmmoMin\120\dropAm moMax\240\viewFlashEffect\fx/muzzleflashes/heavy_viewmp.efx\worldFlashEffect\fx/muzzleflashes/heavy.efx\pickupSound\weap_bar_pickup\ammoPickupSo und\weap_bar_ammopickup\fireSound\weap_bar_fire\la stShotSound\\rechamberSound\\reloadSound\weap_bar_ reload_not_empty\reloadEmptySound\weap_bar_reload\ reloadStartSound\\reloadEndSound\\altSwitchSound\w eap_bar_altswitch\raiseSound\weap_bar_raise\putawa ySound\weap_bar_putaway\noteTrackSoundA\\noteTrack SoundB\\noteTrackSoundC\\noteTrackSoundD\\shellEje ctEffect\fx/shellejects/rifle.efx\lastShotEjectEffect\\reticleCenter\\reti cleSide\gfx/reticle/side_skinny.tga\reticleCenterSize\0\reticleSideSiz e\0\reticleMinOfs\0\altWeapon\bar_slow_mp\twoHande d\1\rifleBullet\1\semiAuto\0\boltAction\0\aimDownS ight\1\wideListIcon\1\killIcon\gfx/hud/hud@death_bar.tga\wideKillIcon\1\noPartialReload\0 \segmentedReload\0\reloadAmmoAdd\0\reloadStartAdd\ 0\aiEffectiveRange\512\aiMissRange\1500\standMoveF \0\standMoveR\0.6\standMoveU\-1\standRotP\0\standRotY\0\standRotR\0\duckedOfsF\-0.5\duckedOfsR\0.6\duckedOfsU\-0.2\duckedMoveF\0\duckedMoveR\0.6\duckedMoveU\-1.8\duckedRotP\0\duckedRotY\0\duckedRotR\0\proneOf sF\0.1\proneOfsR\1.7\proneOfsU\0.1\proneMoveF\-50\proneMoveR\-75\proneMoveU\-105\proneRotP\50\proneRotY\290\proneRotR\-300\posMoveRate\4\posProneMoveRate\25\standMoveMin Speed\80\duckedMoveMinSpeed\20\proneMoveMinSpeed\0 \posRotRate\5\posProneRotRate\35\standRotMinSpeed\ 80\duckedRotMinSpeed\20\proneRotMinSpeed\0

I am glad IW did not set these values as private static, or final in the main() method of the engine, otherwise setting or changing these would cause errors.

In order to change a value, you must know what to look for, we are going to change move scale speed. All the way to the right in this post in PINK as an example. simply change the value from default, 1.13 to your new value,
.7 is too slow, so i set mine at .75 In this file there a many things to change. To be a fair MOD, right down the values you change and apply to all weapons.

Finally, save the file. Then Go into the directory where you see the weapon folder. If using Winzip (recommended). Right click, create an archive, then change the name of the archive(same as mohaa). To something like zzz-mymod.pk3. So the engine loads that mod last. Save it, then put it /MAIN on the server. Check your dedicated.cfg for cl_allowDownloads 1 is on. ((Clients do not need any extra pk3's in their /MAIN)). Then test your setting.


If you get frustrated or mess it up. You can go to the download sections and Download MMS realsm made to slow down the players.
I hope I helped.

imported_MMS_Wyatt_Earp
11-06-2003, 01:02 PM
Wyatt here..
It is in the admin's best interest after making a mod, to rename it and rename it often. Why, when you connect to an sv_pure server, if the client had the mod in his main ( an altered one of yours). The sever reads it, and occationaly updates itself. It has happened, not making it up. Then the server has a new altered mod from the hacker.

Ftp and rename the file, very often, I already renamed mine after 48 hours.

Wyatt out...

Sitting_Duck
11-06-2003, 05:43 PM
Wyatt, Wouldn't you want to have sv_pure turned off if you are running mods within the server? MOH's sv_pure never worked properly anyways, so when we added mods "server side" there were no problems.

I find a vast majority of the n()()bs won't download or don't know how to d/l mods and/or maps. But who knows, maybe we will have a strong enough base to keep the new to gaming players up to date.

imported_MMS_Wyatt_Earp
11-07-2003, 12:59 PM
Wyatt here..

Ola Duck....The server sends the pk3 to the client. Using set cl_allowDownload 1. sv_pure makes sure the client does not have extra pk3's that you do not have installed on your server. Been working since i installed it. Everyone loves the reduced speed.. soo.. :)

Did I answer your question? Just woke up lol

Wyatt out..

imported_MMS_Wyatt_Earp
11-07-2003, 01:02 PM
Wyatt here...

Oh and thats the beauty of allowDownload. It makes it so us modders, and mappers do not need to promote our maps, mods, skins :P

Wyatt out...

imported_MMS_Wyatt_Earp
11-07-2003, 01:05 PM
Wyatt here..

I made that tutorial for the guides section yesterday. Noticed it was not sticky posted, Im sure alot of veteran modders and new modders would like to know how.

Wyatt out..