Sdk weapons?

Grab your favourite IDE and tinker with the innards of game engines

Sdk weapons?

Postby Welsh Mullet on Sun Jan 09, 2011 12:36 pm

Right, if anyone has ever looked, in the sdk files there are (I think) five sdk weapons.
Sdk_Shotgun
Sdk_pistol
Sdk_MP5
Sdk_Melee
Sdk_Grenade

Now, one of these works, and is included if you do a multiplayer template mod. The pistol fires, does damage, but the view model is off center.

Shotgun is included, but it's ammo is invalid, and its view model is again off center (Both Cs:s view models)

I can't find a way to load the others in game, impulse 101 gives these two and the hl2 weps, messing up the inventory system)

Has anyone used them? they aren't even on the wiki...
That's what she said.
User avatar
Welsh Mullet
Regular
Regular
 
Joined: Mon Jul 12, 2010 10:37 am
Location: Reading... Or sometimes Wales for the weekend.

Re: Sdk weapons?

Postby ScarT on Sun Jan 09, 2011 12:57 pm

They're just copies of CS:S weapons added to the SDK template as you mentioned yourself. I never experienced them being off center though (pictures please?). Do a search for "GiveNamedItem(" (without the quotes of course) and you should find where the impulse command is defined.
User avatar
ScarT
Senior Member
Senior Member
 
Joined: Sat Apr 02, 2005 7:33 pm
Location: Denmarkian Land

Re: Sdk weapons?

Postby Kosire on Sun Jan 09, 2011 1:29 pm

They are just for reference on how to make your own shotgun, pistol, mp5, melee and grenade weapons, a template :)
User avatar
Kosire
1337 p0st3r
1337 p0st3r
 
Joined: Sat Mar 07, 2009 7:25 pm
Location: Denmark

Re: Sdk weapons?

Postby Welsh Mullet on Sun Jan 09, 2011 1:44 pm

By going into third person, it looks like the cs:s weapons are left handed....

Edit: Can't compile, seem to be missing weapon_sdkbase.h

That missing file was the problem. Found it, compiled, and launched a server properly. Now it works! Weapon pick up should probably be off or tweaked, but it seems you can change teams, classes etc in one file. Exactly what i want to do with my community base.
Cs:s weapons, a crowbar and Dod:s models? XD
That's what she said.
User avatar
Welsh Mullet
Regular
Regular
 
Joined: Mon Jul 12, 2010 10:37 am
Location: Reading... Or sometimes Wales for the weekend.

Return to Programming

Who is online

Users browsing this forum: No registered users