• CS:S Weapons
    24 replies, posted
Hello people, So I was wondering if someone can help me with a problem i'm having, I have my host, CS:S is mounted, although it tells me [CODE] Attempted to create unknown entity type weapon_awp! Can't init weapon_awp Attempted to create unknown entity type weapon_p90! Can't init weapon_p90 Attempted to create unknown entity type weapon_smokegrenade! Can't init weapon_smokegrenade Attempted to create unknown entity type weapon_smokegrenade! Can't init weapon_smokegrenade Attempted to create unknown entity type weapon_smokegrenade! Can't init weapon_smokegrenade Attempted to create unknown entity type weapon_knife! NULL Ent in GiveNamedItem! [/CODE] Just stuff like that in console, obviously the entity isn't there, but I looked online for weapon packs etc to find nothing that works, any help would be appreciated.. thanks :)
What gamemode are you using (I'm assuming Deathrun)? When you get a weapon pack, you have to rename the entities to match the CS:S counterparts.
Yes it is deathrun, and I actually had renamed the entities, gave me errors, do yoyou think youu could link me to a pack or something?
[url]http://steamcommunity.com/sharedfiles/filedetails/?id=187933083[/url] Put all the weapon's lua files in gamemode/deathrun/entities/weapons and rename the files to match the CS:S entities.
Deathrun doesn't have an entities folder, do I just create it? Or would I put it in lua/entities?
[QUOTE=Cheissos;44983979]Deathrun doesn't have an entities folder, do I just create it? Or would I put it in lua/entities?[/QUOTE] Create it.
Should I worry about putting any of the other files server sided or just the entities folder?
[QUOTE=Cheissos;44984106]Should I worry about putting any of the other files server sided or just the entities folder?[/QUOTE] Sometimes, SWEP packs will have other lua files for auxiliary additions to the SWEPs, but the important part is that you put the SWEP files in deathrun/entities/weapons.
Would I need to edit the shared.lua whatsoever? Or can I just rename the file and it'll be cool?
Change all instances of AddCSLuaFile( "shared.lua" ) to AddCSLuaFile(). Leaving it empty will automatically add the lua file no matter what its name is. Also, make sure you that after you rename them, you take them out of their folders.
So it would be... deathrun/entities/weapon/weapon_knife.lua? EDIT: Will I also need to change the SWEP.Base line for each file?
Yes.
What about killicon.AddFont line?, sorry I should've probably included all this in one post
What about killicon.AddFont? Don't modify any of the SWEP files except for the AddCSLuaFile().
Not swep.base either?
No. Make sure you don't rename the SWEP base file, though if the addon included one.
What about any of the other things? (lua/autorun | lua/effects | lua/entities | materials/* | sound/*) Just upload those to the appropriate folder?
Yes.
After doing what you told me to, I get... Attempted to create unknown entity type weapon_m4a1 Can't init weapon_m4a1
Does weapon_m4a1.lua exist in deathrun/entities/weapons?
Yes, it does for a fact, it's the same with weapon_ak47 and weapon_knife
I noticed in an earlier post you said deathrun/entities/weapon/weapon.lua; it's deathrun/entities/weapon[B]s[/B]/weapon.lua. Also, make sure you have restarted the server.
From what I can tell it works, what would I do to fix the info_ladder one? Because I wanna try to get rid of the shit from console, and thats one I can't seem to figure out
That's an old CS:S ladder trigger iirc; not something you can really solve without writing your own GMod info_ladder entity.
Alright, thanks a ton for the help, much appreciated.
Sorry, you need to Log In to post a reply to this thread.