G
Grofit
Guest
Hello there,
Ive recently started trying to do some work with the Source Engine, however i realised it didnt like VS 2005 much and now have got it up and running in VS 2003 nicely.
I messed around a bit tinkering with things in the "modify HL2 MP" mod, followed what tutorials i could. However i then thought i would make a weapon, just something simple, as i thought the current build was too cluttered i just wanted base objects and a couple of pre made items to base mine off i went with the "Start Mod From Scratch" option.
Looked cool, kinda copied the MP5 example, i decided to just get a shell of a weapon running from the base SDK weapon class. Set it all up, it builds fine. I've set it up within the base class ENUM object as "Weapon_Test", as well as assigning it a name.
However when i try to create the weapon in game it wont come up, the code is pretty much identical to the MP5 code although it all has slight numerical differences in bullet spread and reload speed etc. I have also made a script file to go with it which is a copy of the existing MP5 weapon script with the name changes.
Anyway basically it still isnt working, and ive been looking all day for a SOLID tutorial on how to build a simple weapon from A->B, without much luck.
So my question is basically what do i NEED to make sure ive done to get a weapon from my head into the game, below is what steps ive done.
- Made CWeaponTest Class, Derived from cBaseSDKWeapon (or similar name)
- Added entries into cBaseSDKWeapon class for the new weapon
- Added weapon script file within the relevent area in my steamapps
Is there anything im missing, sorry if i appear to be asking a stupid question but to someone whos not to familiar with this engine its quite a problem.
Thanks for anyones help/advice
Ive recently started trying to do some work with the Source Engine, however i realised it didnt like VS 2005 much and now have got it up and running in VS 2003 nicely.
I messed around a bit tinkering with things in the "modify HL2 MP" mod, followed what tutorials i could. However i then thought i would make a weapon, just something simple, as i thought the current build was too cluttered i just wanted base objects and a couple of pre made items to base mine off i went with the "Start Mod From Scratch" option.
Looked cool, kinda copied the MP5 example, i decided to just get a shell of a weapon running from the base SDK weapon class. Set it all up, it builds fine. I've set it up within the base class ENUM object as "Weapon_Test", as well as assigning it a name.
However when i try to create the weapon in game it wont come up, the code is pretty much identical to the MP5 code although it all has slight numerical differences in bullet spread and reload speed etc. I have also made a script file to go with it which is a copy of the existing MP5 weapon script with the name changes.
Anyway basically it still isnt working, and ive been looking all day for a SOLID tutorial on how to build a simple weapon from A->B, without much luck.
So my question is basically what do i NEED to make sure ive done to get a weapon from my head into the game, below is what steps ive done.
- Made CWeaponTest Class, Derived from cBaseSDKWeapon (or similar name)
- Added entries into cBaseSDKWeapon class for the new weapon
- Added weapon script file within the relevent area in my steamapps
Is there anything im missing, sorry if i appear to be asking a stupid question but to someone whos not to familiar with this engine its quite a problem.
Thanks for anyones help/advice