How correct position of weapon model in hand?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

How correct position of weapon model in hand?

Post 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?
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post 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.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Post Reply