Raised This Month: $51 Target: $400
 12% 

Editing CTX Files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AdamRA4
New Member
Join Date: Apr 2008
Old 05-13-2008 , 00:32   Editing CTX Files
Reply With Quote #1

I am wanting to make the MediGun charge faster on my Medic Server. I decompiled the CTX file (shown below) using vice.
I edited the Damage to 2400 and the Range to 900. The range seemed to work but the Damage (aka Heal Power) didnt change at all. What am I missing??
ALso, once I edited the file I recompiled and restarted my server.

Code:
 
WeaponData
{
 // Attributes Base.
 "printname"    "#TF_Weapon_Medigun"
 "BuiltRightHanded"  "0"
 "weight"    "3"
 "WeaponType"  "secondary"
 "ITEM_FLAG_NOITEMPICKUP"  "1"
 
 // Primary Attributes
 "Damage"    "24"
 "Range"     "450"
 "TimeFireDelay"   "0.5"
 "TimeIdle"    "5.0"
 "TimeIdleEmpty"   "0.25"
 "TimeReloadStart"  "0.1"
 "TimeReload"   "0.5"
 "primary_ammo"   "None"
 "ProjectileType"  "projectile_bullet"
 "HasTeamSkins_Viewmodel"   "1"
 "HasTeamSkins_Worldmodel" "1"
 // Buckets.
 "bucket"   "1"
 "bucket_position"  "0"
 // Animation.
 "viewmodel"   "models/weapons/v_models/v_medigun_medic.mdl"
 "playermodel"   "models/weapons/w_models/w_medigun.mdl"
 "anim_prefix"   "shotgun"
 
 // Muzzleflash
 "MuzzleFlashModel" "models/effects/sentry1_muzzle/sentry1_muzzle.mdl"
 "MuzzleFlashModelDuration" "0.1"
 // Sounds.
 // Max of 16 per category (ie. max 16 "single_shot" sounds).
 SoundData
 {
  "single_shot"  "WeaponMedigun.Healing"
  "special1"  "WeaponMedigun.NoTarget"
 }
 // Weapon Sprite data is loaded by the Client DLL.
 TextureData
 {
  "weapon"
  {
    "file"  "sprites/bucket_medigun_red"
    "x"  "0"
    "y"  "0"
    "width"  "200"
    "height"  "128"
  }
  "weapon_s"
  { 
    "file"  "sprites/bucket_medigun_blue"
    "x"  "0"
    "y"  "0"
    "width"  "200"
    "height"  "128"
  }
  "ammo"
  {
    "file"  "sprites/a_icons1"
    "x"  "55"
    "y"  "60"
    "width"  "73"
    "height" "15"
  }
  "crosshair"
  {
    "file"  "sprites/crosshairs"
    "x"  "0"
    "y"  "64"
    "width"  "32"
    "height" "32"
  }
  "autoaim"
  {
    "file"  "sprites/crosshairs"
    "x"  "0"
    "y"  "48"
    "width"  "24"
    "height" "24"
  }
 }
}
AdamRA4 is offline
fireblade212
Member
Join Date: Mar 2008
Old 05-13-2008 , 12:07   Re: Editing CTX Files
Reply With Quote #2

got this from bl4nk

"weapon_medigun_damage_modifier" = "1.5"
- Scales the damage a player does while being healed with the medigun.
"weapon_medigun_construction_rate" = "10"
- Constructing object health healed per second by the medigun.
"weapon_medigun_charge_rate" = "40"
- Amount of time healing it takes to fully charge the medigun.
"weapon_medigun_chargerelease_rate" = "8"
- Amount of time it takes the a full charge of the medigun to be released.
"tf_max_health_boost" = "1.5"
- Max health factor that players can be boosteto by healers.
"tf_boost_drain_time" = "15"
- Time is takes for a full health boost to drain away from a player.
fireblade212 is offline
AdamRA4
New Member
Join Date: Apr 2008
Old 05-13-2008 , 23:56   Re: Editing CTX Files
Reply With Quote #3

I am assuming that goes into the server.cfg? Do I have to have a plugin for that to work?
AdamRA4 is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 05-14-2008 , 00:00   Re: Editing CTX Files
Reply With Quote #4

Use sm_cvar {cvar} in sourcemod.cfg or server.cfg doesnt matter.
__________________

DontWannaName is offline
AdamRA4
New Member
Join Date: Apr 2008
Old 05-14-2008 , 00:34   Re: Editing CTX Files
Reply With Quote #5

*** GOT IT ***
I put the values in server.cfg
It should look like this (These are my values, you can change whatever you want):


Code:
sm_cvar "weapon_medigun_damage_modifier" "1.5"
// Scales the damage a player does while being healed with the medigun.
sm_cvar "weapon_medigun_construction_rate" "100"
// Constructing object health healed per second by the medigun.
sm_cvar "weapon_medigun_charge_rate" "2"
// Amount of time healing it takes to fully charge the medigun.
sm_cvar "weapon_medigun_chargerelease_rate" "25"
// Amount of time it takes the a full charge of the medigun to be released.
sm_cvar "tf_max_health_boost" "3.5"
// Max health factor that players can be boosted to by healers.
sm_cvar "tf_boost_drain_time" "35"
// Time it takes for a full health boost to drain away from a player.

Last edited by AdamRA4; 05-14-2008 at 01:03.
AdamRA4 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:28.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode