View unanswered posts | View active topics It is currently Sun Dec 01, 2024 3:42 am



Reply to topic  [ 2 posts ] 
 Randomizing gun sprites. 
Author Message
User avatar

Joined: Wed Apr 16, 2014 8:53 am
Posts: 64
Location: Bunker busting.
Reply with quote
Post Randomizing gun sprites.
So, I'm trying randomize a gun's sprite in a similar manner to the Ronin's heads and stuff like that, and I tried that same script, but as I've found out, held devices are hard coded to default to their first frame of animation, so I'm wondering if there's something like a Self.defaultframe I could try and place into the sprite randomizing script that will fix this.


Tue Apr 16, 2019 12:55 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: Randomizing gun sprites.
As far as I know, there's no way to modify the sprite directly or mess around with an HDFirearm's frame using Lua.

You could try using an attachable that has the different sprites and the gun is a plain rectangle or something, just to serve as something to get shot at.

There isn't any trickery needed to change magazine sprites, so that part is at least easy.


Tue Apr 16, 2019 3:19 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.032s | 15 Queries | GZIP : Off ]