Okay, I installed a weapon pack on my server called [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=132835998"]DOD Weapon[/URL] and when I test the weapons out, there holdtype is broken, it works clientside but serverside its broken here are some images for it:[url]http://imgur.com/a/YCPB5[/url]
The holdtype it's wrong, you're using a deprecated version of SetHoldType i guess, check the wiki
The weapons currently seem to have a lot of issues, especially with crashing. Just guessing that the hold type issue stems from SetWeaponHoldType or TranslateActivity being overwritten. I'm working on new DoD SWEPs, and they should be done within the next month.
Okay, so your suggesting I use a more update Hold type for the DoD Weapons, also I sort of dont have a month to wait, so if I can fix the hold type asap that would be great.
[code]SWEP.HoldType = "ar2"
function SWEP:Initialize()
self:SetWeaponHoldType( self.HoldType )
end[/code]
Should I just replace the holdtype with that to see if it fixes?
No; run the function SetHoldType instead of SetWeaponHoldType.
[QUOTE=code_gs;48927537]No; run the function SetHoldType instead of SetWeaponHoldType.[/QUOTE]
Ahhhh... So
[code]
SWEP.HoldType = "ar2"
function SWEP:Initialize()
self:SetHoldType( self.HoldType )
end
[/code]
[code]
SWEP.ViewModelFOV = 54
SWEP.Base = "weapon_dod_sim_base"
SWEP.ViewModelFlip = false
SWEP.HoldType = "smg"
function SWEP:Initialize()
self:SetHoldType( self.HoldType )
end
SWEP.Spawnable = false
SWEP.AdminSpawnable = false
SWEP.ViewModel = "models/weapons/a_mp40.mdl"
SWEP.WorldModel = "models/weapons/b_mp40_n.mdl"
[/code]
Yes, but that's only if there's no Initialize method after that which would override it.
Okay from experimenting and doing several server restarts, it seems like majority of the weapons work, but on the occasional server restart there broken.
EDIT: Now certain classes break with these, specifically some of the [URL="http://steamcommunity.com/sharedfiles/filedetails/?id=104555025"]playermodels[/URL].
Then those playermodels don't support the specific holdtypes/animations.
[QUOTE=code_gs;48933927]Then those playermodels don't support the specific holdtypes/animations.[/QUOTE]
Yeah, but in singleplayer they work, I honestly may haft to consider changing the playermodels.
[editline]19th October 2015[/editline]
[url]http://steamcommunity.com/workshop/filedetails/?id=1045[/url]
Those playermodels are compatible with the ww2 weapons, a possible fix might be adding those in supposedly... But I have done this before, and its going to be tricky trying to mix and match with the weapons, I'd honestly be better off using the ww2 weapoons at this point.
Yep, bumping thread, I have now learn't
SWEP.HoldType = "ar2"
function SWEP:Initialize()
self:SetHoldType( self.HoldType )
end
Just breaks it and makes the animation go into this infinite loop where nothing actually gets reloaded.
Sorry, you need to Log In to post a reply to this thread.