I have been getting all the pieces together to create a new weapon in CS2 however, I cannot get the transition from the hammer editor into the game.
I know changing or adding an ID to get it working is a solution however, I want to create it from scratch if possible before going down that route which should set me
up in the long run for specific modded maps with a custom game mode.
Steps I have taken
I included the weapon in the "\Counter-Strike Global Offensive\game\csgo\csgo.fgd" file which allowed hammer to recognize the new weapon and place it into the map
I included the weapon in the "\Counter-Strike Global Offensive\game\csgo\import_scripts\bin\csgo.fgd" file
I edited the weapons.vdata to include the sr99ds2 branching down the sniper rifle chain. I fixed it until the game loaded with no issues.
I only has the classes and names changed as of right now until I can get it to recognize the gun game (at which later I will insert the correct model.
for now it uses the scar information).
I included the information into the "Counter-Strike Global Offensive\game\csgo_addons\halotemplate\scripts\items.txt" file
Though I had multiple crashes, after trial and error I was able to get the game running without issue with the new script in the above files.
The entities vanish when moving from the editor to the game, sub entities using the new sniper's ID are not recognized and when I try to use the
'give' command it gives me the error give: Encountered unknown entity subclass "weapon_sr99ds"
Pictures are tests of different versions and subclasses of the weapons. Only the scar and scar with the id of a deagle appear as they are already in the game
Any help would be appreciated.
(would HLA people know anything about this?)