SWEP World Model Pos Problem

hello,

I’m having a problem with a SWEP where I am using this model:

It’s ment for the gamemode Trouble in Terrorist Town ( which requires all Weapons to have the weapon_tttbase - it’s in ur gmod )

I’m using the following lines on the sweps script:

[lua]SWEP.HoldType = “pistol”

SWEP.Base= “weapon_tttbase”

SWEP.ViewModel= “models/weapons/v_pist_geagle.mdl”
SWEP.WorldModel= “models/weapons/w_pist_geagle.mdl”[/lua]

but the world model shows up in the center of the Player model:

http://img687.imageshack.us/img687/8328/worldmodelprob.jpg

If I change the world model to the normal deagle model, The Normal Deagle’s world model will show up in the correct place. So I guess this is a Model issue ??? Is it simple to fix this or not ?

Plz help. =)

The model needs attachment positions added so source knows where you actually want to position the deagle. These attachment positions wasn’t made when the model was made, and thus it wont show up in your hands. To fix this, you have to decompile the model and add them manually, which I don’t know anything of.

On another hand, this could maybe be made with lua somehow.

No it’s very possible in lua. Zoey had a medkit swep thing to go with her addon, it put a small medkit (hl2) model in your hand. It worked quite well. And the Swep Construction Kit thing can do it too.

edit: http://www.facepunch.com/threads/1032378-SWEP-Construction-Kit-developer-tool-for-modifying-viewmodels-ironsights

:ninja: ?

offtopic: But I think Kazak’s avatar is quite clever.