Page 1 of 1
How correct position of weapon model in hand?
Posted: Mon Dec 22, 2008 3:01 pm
by Aprop
I've seen on one server mod which change grenade model to bottle, colt to something else, nvm, I tried do that in tik's, changed SKB file of colt45 to static model skb, but player wrong hold weapon...can i fix it without editing skb file?
Posted: Mon Dec 22, 2008 3:12 pm
by $oldier Of Ra
You shouldn't do this with tik edits, I'm sure this can be done through scripting (hiding weapon and giving bottle instead etc). Probably through states. Klug is the master when it comes to giving players shovels etc...
But maybe this'll help you as well:
attachmodel ( String modelname, String tagname, [Float scale], [String targetname], [Boolean detach_at_death], [Float removetime], [Float fadeintime], [Float fadeoutdelay], [Float fadetime], [Vector offset] )
attach a entity with modelname to this entity to tag called tagname.
scale - scale of attached entities
targetname - targetname for attached entities
detach_at_death - when entity dies, should this model be detached.
removetime - when the entity should be removed, if not specified, never.
fadeintime - time to fade the model in over.
fadeoutdelay - time to wait until we fade the attached model out
fadeoutspeed - time the model fades out over
offset - vector offset for the model from the specified tag
Execute this command on an entity (=player). The vector_offset is what you need to place it correctly.