Scripts / Play specific weapon animation

Author
Message
Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 31st Jul 2017 14:08
Hi all,

I don't know much about animation scripting so hopefully someone can tell me if this is even possible.

I understand a while ago that a lot of new weapon specific lua commands were introduced, so my question is, is there a way for a weapon that is equipped to run a specific number of animation frames?

So for example, if I walk into a trigger zone, the weapon I am holding will play, lets say frames 100-200 and then go back to its default?
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 31st Jul 2017 14:18
These are valid animation calls for weapons:
select = 303,311
idle = 10,60
move = 116,156
;run = 209,249

melee start = 347,353
melee end = 354,370

;fire = 525,531
start fire = 525,527
end fire = 528,531

;last fire = 534,543
last start fire = 534,536
last end fire = 537,543

reload = 420,463
putaway = 314,322

empty select = 325,333
empty idle = 63,113
empty move = 160,200
empty run = 253,293

empty melee start = 380,386
empty melee end = 387,403

empty reload = 470,519
empty putaway = 336,343

zoomto = 546,550
zoom idle = 625,685
zoom move = 581,621
zoom start fire = 555,556
zoom end fire = 557,561

;zoom last fire = 564,570
zoom last start fire = 564,565
zoom last end fire = 566,570

zoomfrom = 688,692

empty zoomto = 695,699
empty zoom idle = 754,814
empty zoom move = 710,750
empty zoomfrom = 817,821

dryfire = 824,830
zoom dryfire = 701,707

fix jam = 834,859

altto = 865,908
altfrom = 911,954
empty altto = 965,1008
empty altfrom = 1011,1054

alt select = 1403,1411
alt idle = 1110,1160
alt move = 1216,1256
;alt run = 1309,1349

alt melee start = 1447,1453
alt melee end = 1454,1470

;alt fire = 1625,1631
alt start fire = 1625,1627
alt end fire = 1628,1631

;alt last fire = 1634,1643
alt last start fire = 1634,1636
alt last end fire = 1637,1643

alt reload = 1520,1563
alt putaway = 1414,1422

alt empty select = 1425,1433
alt empty idle = 1163,1213
alt empty move = 1260,1300
alt empty run = 1353,1393

alt empty melee start = 1480,1486
alt empty melee end = 1487,1503

alt empty reload = 1570,1619
alt empty putaway = 1436,1443

alt zoomto = 1646,1650
alt zoom idle = 1725,1785
alt zoom move = 1681,1621
alt zoom start fire = 1655,1656
alt zoom end fire = 1657,1661

;alt zoom last fire = 1664,1670
alt zoom last start fire = 1664,1665
alt zoom last end fire = 1666,1670

alt zoomfrom = 1788,1792

alt empty zoomto = 1795,1799

alt zoom dryfire = 1801,1807

alt empty zoom idle = 1854,1914
alt empty zoom move = 1810,1850
alt empty zoomfrom = 1917,1921

alt dryfire = 1924,1930

alt fix jam = 1934,1959


The frame ranges would have to be animated. You would have to use an alt mod right now to access these. The weapons system is still hard coded, so a question to Lee may be in order.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Nathan38
13
Years of Service
User Offline
Joined: 13th Feb 2011
Location:
Posted: 31st Jul 2017 14:43
Hi Myke, thanks for the reply!

what is an alt mod?

say if when i walk into a zone could a certain animation range like the examples you posted play? e.g. alt reload = 1520,1563?
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 31st Jul 2017 22:37
Alt mode is another way to get more animations into the weapon.
The UZI has alt mode capabilities. Extra animations included. Not all weapons have this.
If you press V while using it, it goes into single shot mode. Pressing V again puts it back to automatic.

These can not be access thru scripts that I know of. It is controlled by pressing the V key to activate the alternative mode.
Check out the UZI's gunspec.txt file.

Maybe Errant A.I. will see this and reply.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Teabone
Forum Support
18
Years of Service
User Offline
Joined: 8th Jun 2006
Location: Earth
Posted: 8th Aug 2017 23:33 Edited at: 8th Aug 2017 23:34
Quote: "It is controlled by pressing the V key to activate the alternative mode."


I had no idea about this.... time to jump back into the sandbox. Be amazing if there was a way to integrate this with scripting. As I'd love for the ability to block with a sword and things like that.
Twitter - Teabone3 | Youtube - Teabone3 | Twitch - Teabone3 | TGC Assets - Store Link

i7 -2600 CPU @ 3.40GHz - Windows 7 - 8GB RAM - Nivida GeForce GTX 960
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 8th Aug 2017 23:59
I dont know enough about scripting to not mess up the gameplayercontrol.lua file. If Lee opened it up, it should be in here somewhere.
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit, Screen resolution 1680 x 1050.

Login to post a reply

Server time is: 2024-12-23 00:12:28
Your offset time is: 2024-12-23 00:12:28