Author Topic: How to make your OWN achievement weapon!  (Read 360 times)

0 Members and 1 Guest are viewing this topic.

Trozte
  • [psy] Contributor
  • *
  • Posts: 38
  • Country: mx
  • Reputation: 1
  • Gender: Male
  • ehem... Gentlemen
How to make your OWN achievement weapon!
« on: December 09, 2009, 01:36:31 AM »
Hi everyone I found this topic on the steam forums and I just want to share it with you  :blush:

Requirements:
Team Fortress 2

CTXhack
http://www.mediafire.com/?sharekey=d6e96cfb3600ee636b21be4093fab7ace04e75f6e8ebb871

GCFScape
http://www.softpedia.com/progDownload/GCFScape-Download-136070.html

Step 1 = Install GCFScape, open it, then click File -> Open, then go to Steam/steamapps and click on Team Fortress 2 Content.
Step 2 = With GCFScape in content folder, go to tf/scripts/items.
Step 3 = You find two files, "items.ctx and attributes.ctx"right click on them and extract them to desktop in a new folder.
Step 4 = Copy both of the Ctxhack and vice.exe in folder where you placed the files.
Step 5 = Open CTX_HACK_TF2, click on decode, then click execute for every file.
Step 6 = In the folder should appear again Attributes and Items but in .txt format.
Step 7 = Open both attributes and items with wordpad.
Step 8 = You wonder what those things are? Attributes file contains all attributes for an achievement weapon, and Items file, represents all TF2 weapons.
Step 9 = You want Natascha to make look like this, don't you? .
Step 10 = First go in items.txt, hit CTRL+F, then search for Natascha.
Step 11 = When you find it, it will look like this:
Quote
"name" "Unique Achievement Minigun"
"enabled" "1"
"item_class" "tf_weapon_minigun"
"item_type_name" "#TF_Weapon_Minigun"
"item_name" "#TF_Unique_Achievement_Minigun"
"item_slot" "primary"
"item_logname" "natascha"
"image_inventory" "backpack/weapons/c_models/c_w_ludmila/c_w_ludmila"
"image_inventory_size_w" "128"
"image_inventory_size_h" "82"
"model_player" "models/weapons/w_models/w_minigun.mdl"
"attach_to_hands" "0"
"item_quality" "unique"
"min_ilevel" "5"
"max_ilevel" "5"
"used_by_classes"
{
"heavy" "1"
}
"attributes"
{
"slow enemy on hit"
{
"attribute_class" "mult_onhit_enemyspeed"
"value" "1.0"

}
"damage penalty"
{
"attribute_class" "mult_dmg"
"value" "0.75"

}


Step 12 = Look at all highlighted words, we have to change them!
Step 13 = Changing the name of the minigun, both
Quote
"item_type_name" "#TF_Weapon_Minigun"
"item_name" "#TF_Unique_Achievement_Minigun"


change them with the name you want. E.G
Quote
"item_type_name" "Example Name Of Minigun"
"item_name" "Example Name Of Minigun"


Step 14 = Now we have to change minigun's powers. Open the attribute.txt and there you will have a lot of attributes for weapons. I'll show you an example, how the attribute for critical boost looks like
Quote
{
"name" "critboost on kill"
"attribute_class" "add_onkill_critboost_time"
"attribute_name" "Add CritBoost effect on kill"
"min_alevel" "1"
"max_alevel" "50"
"min_value" "2"
"max_value" "3"
"affix_position" "-1"
"affix_text" "#damagedone_neg_1"
"group" "only_on_unique"
"description_string" "#Attrib_CritBoost_OnKill"
"description_format" "value_is_additive"
"hidden" "0"
"effect_type" "positive"
"force_incompatible_with" "or_crit_vs_playercond"
"incompatible_attributes"
{


Step 15 = We don't need all , just concentrate on this
Quote
"name" "critboost on kill"
"attribute_class" "add_onkill_critboost_time"


Step 16 = Change the Natascha's attributes from
Quote
"attributes"
{
"slow enemy on hit"
{
"attribute_class" "mult_onhit_enemyspeed"
"value" "1.0"
}
"damage penalty"
{
"attribute_class" "mult_dmg"
"value" "0.75"
}


to
Quote
"attributes"
{
"critboost on kill"
{
"attribute_class" "add_onkill_critboost_time"
"value" "1.0"
}
"damage penalty"
{
"attribute_class" "mult_dmg"
"value" "0.75"
}


change the value from 1.0 to 7.0 for 7 seconds of criticals.
Step 17 = This should be enough, if you want to edit the second attribute, repeat the previous steps. Also you can add more attributes, but you must be very carefully or you will screw it up
Step 18 = To add more attributes, copy the following
Quote
"slow enemy on hit"
{
"attribute_class" "mult_onhit_enemyspeed"
"value" "1.0"
}


and put them UNDER this
Quote
{
"heavy" "1"
}
"attributes"
{
"slow enemy on hit"
{
"attribute_class" "mult_onhit_enemyspeed"
"value" "1.0"
}
"damage penalty"
{
"attribute_class" "mult_dmg"
"value" "0.75"
}
Here


Step 19 = If you are done, close items.txt, save it, go to CTX HACK, click on encode all then click for every file.
Step 20 = Both NEW items.ctx and attributes.ctx copy them in steam/steamapps/account-name/teamfortress2/tf/scripts/items. and your weapon should be done!

Hope you like it  :biggrin:
P.D. it only works in your own private servers
P.D.2. I'll put some other things about similar things of this topic