Gmod 13 Half - Life Source everything XD

Hi, I’m wonder, is there a way to add weapons from HL:S, because Npcs are already there. And my second question is where are stored files that add npcs from other games? Example
P.S: It’s not for help, because “General discussion” isn’t for help bu there are not “Forum for wondering people”.

…garrysmod/lua/autorun game_hl2.lua:




local Category = ""

local function ADD_ITEM( name, class )

	list.Set( "SpawnableEntities", class, { PrintName = name, ClassName = class, Category = Category, NormalOffset = 32, DropToFloor = true, Author = "VALVe" } )
	duplicator.Allow( class )

end

local function ADD_WEAPON( name, class )

	list.Set( "Weapon", class, { ClassName = class, PrintName = name, Category = Category, Author = "VALVe", Spawnable = true } )
	duplicator.Allow( class )

end

Category = "Half-Life 2"

-- Ammo
ADD_ITEM( "AR2 Ammo",			"item_ammo_ar2" )
ADD_ITEM( "Pistol Ammo",		"item_ammo_pistol" )
ADD_ITEM( "Shotgun Ammo",		"item_box_buckshot" )
ADD_ITEM( "357 Ammo",			"item_ammo_357" )
ADD_ITEM( "SMG Ammo",			"item_ammo_smg1" )
ADD_ITEM( "Combine Balls",		"item_ammo_ar2_altfire" )
ADD_ITEM( "Crossbow Bolts",		"item_ammo_crossbow" )
ADD_ITEM( "SMG Grenade",		"item_ammo_smg1_grenade" )
ADD_ITEM( "RPG",				"item_rpg_round" )

-- Items
ADD_ITEM( "Suit Battery",		"item_battery" )
ADD_ITEM( "Health Vial",		"item_healthvial" )
ADD_ITEM( "Health Kit",			"item_healthkit" )
ADD_ITEM( "Suit Charger",		"item_suitcharger" )
ADD_ITEM( "Health Charger",		"item_healthcharger" )
ADD_ITEM( "Suit",				"item_suit" )

ADD_ITEM( "Thumper",			"prop_thumper" )
ADD_ITEM( "Combine Mine",		"combine_mine" )
ADD_ITEM( "Helicopter Grenade",	"grenade_helicopter" )
ADD_ITEM( "Zombine Grenade",	"npc_grenade_frag" )

if ( IsMounted( "ep2" ) ) then
    game.AddParticles( "particles/striderbuster.pcf" )
    ADD_ITEM( "Magnusson",   	"weapon_striderbuster" )
    --Find out how to add the other helicopter grenade skin
end

-- Weapons
ADD_WEAPON( "357",				"weapon_357" )
--ADD_WEAPON( "Alyx Gun",			"weapon_alyxgun" )
--ADD_WEAPON( "Annabelle",		"weapon_annabelle" )
ADD_WEAPON( "AR2",				"weapon_ar2" )
ADD_WEAPON( "Bug Bait",			"weapon_bugbait" )
ADD_WEAPON( "Crossbow",			"weapon_crossbow" )
ADD_WEAPON( "Crowbar",			"weapon_crowbar" )
ADD_WEAPON( "Gravity Gun",		"weapon_physcannon" )
ADD_WEAPON( "Frag Grenade",		"weapon_frag" )
ADD_WEAPON( "Pistol",			"weapon_pistol" )
ADD_WEAPON( "RPG Launcher",		"weapon_rpg" )
ADD_WEAPON( "Shotgun",			"weapon_shotgun" )
ADD_WEAPON( "SLAM",				"weapon_slam" )
ADD_WEAPON( "SMG",				"weapon_smg1" )
ADD_WEAPON( "Stunstick",		"weapon_stunstick" )

Category = "Other"
ADD_WEAPON( "Physics Gun",		"weapon_physgun" )

-- NPC Weapons
list.Add( "NPCUsableWeapons", { class = "none",				title = "None" } )
list.Add( "NPCUsableWeapons", { class = "weapon_stunstick",	title = "Stunstick" } )
list.Add( "NPCUsableWeapons", { class = "weapon_crowbar",	title = "Crowbar" } )
list.Add( "NPCUsableWeapons", { class = "weapon_pistol",	title = "Pistol" } )
list.Add( "NPCUsableWeapons", { class = "weapon_alyxgun",	title = "Alyx Gun" } )
list.Add( "NPCUsableWeapons", { class = "weapon_357",		title = "357" } )
list.Add( "NPCUsableWeapons", { class = "weapon_smg1",		title = "SMG" } )
list.Add( "NPCUsableWeapons", { class = "weapon_ar2",		title = "AR2" } )
list.Add( "NPCUsableWeapons", { class = "weapon_shotgun",	title = "Shotgun" } )
list.Add( "NPCUsableWeapons", { class = "weapon_annabelle",	title = "Annabelle" } )
list.Add( "NPCUsableWeapons", { class = "weapon_crossbow",	title = "Crossbow" } )
list.Add( "NPCUsableWeapons", { class = "weapon_rpg",		title = "RPG" } )
list.Add( "NPCUsableWeapons", { class = "weapon_citizenpackage",		title = "Briefcase" } )



http://79t2s2g2fdudz5l.zippykid.netdna-cdn.com/wp-content/uploads/2014/01/Stevie-Wonder-9536078-1-402.jpg

?

A tak na poważnie to to nie działa w ten sposób. Z tego co wiem NPC z HL:S są zakodowane na twardo w grze przez garrego, nie są chyba zaskryptowne przez pliku lua (choć mogę się mylić). Żeby dodać bronie z HL:S musiałbyś chyba samemu napisać addona który kodowałby je od podstaw, bo same bronie zapewne nie były zaimportowane.

Wydaje mi się że na workshopie powinny być jakieś SWEP’y z HL:S, poszukaj tam.

[editline]12th March 2015[/editline]

[sp]sorry for writing in polish guys, but I was a little doubtful if this guy could get my point across properly if I explained it in english[/sp]

http://steamcommunity.com/sharedfiles/filedetails/?id=114883955 perhaps?

@WhyNott
Dzięki za info. Być może masz rację ale na wszelki wypadek zrobię jeszcze mały research.
Pozdro i dzięki.
@zerf
I dont want any addon that add weapons, I want orginal weapons from HL: Source

Is it even possible? Otherwise we would have css weapons.

Yeah

No it’s not possible unless you can get the source of the weapons. If that’s the case they can be ported to lua with identical properties.

No, it is not possible. The only weapon GMod has from HL:S is the grenade.

How is the grenade the only thing that works out of all the other weapons?

I expected something like the crowbar to work.