Scripts / Ancient LUA commands?

Author
Message
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 7th Feb 2020 21:46
Are these functions obsolete? No longer hard-coded?

global.lua wrote: "function CharacterControlManual(e)
SendMessageI("charactercontrolmanual",e);
end
function CharacterControlLimbo(e)
SendMessageI("charactercontrollimbo",e);
end
function CharacterControlUnarmed(e)
SendMessageI("charactercontrolunarmed",e);
end
function CharacterControlArmed(e)
SendMessageI("charactercontrolarmed",e);
end
function CharacterControlFidget(e)
SendMessageI("charactercontrolfidget",e);
end
function CharacterControlDucked(e)
SendMessageI("charactercontrolducked",e);
end
function CharacterControlStand(e)
SendMessageI("charactercontrolstand",e);
end
"


There is a comment above these that says:

global.lua wrote: "-- Ancient LUA commands (superseded by removing hard-coded systems)"
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 7th Feb 2020 23:32
they might still work but yes the AI (and you are meant to) use your own animations now - i.e. SetAnimation(#) & PlayAnimation(e)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 8th Feb 2020 04:22
Thanks for the response smallg. That's what I thought. No, they don't work--at least with the characters, I was using. I actually thought that if I didn't have to script such behaviors such as "fidget" or "unarmed" that would be cool. Yes, it's not actually that hard to script it. In fact, I'm glad that there is the ability to script it according to one's own animation frames.
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 8th Feb 2020 08:55
Even you can play with:



among many others.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 8th Feb 2020 10:39
Quote: "Thanks for the response smallg. That's what I thought. No, they don't work--at least with the characters, I was using. I actually thought that if I didn't have to script such behaviors such as "fidget" or "unarmed" that would be cool. Yes, it's not actually that hard to script it. In fact, I'm glad that there is the ability to script it according to one's own animation frames."

they were ok if that's all you wanted to do but the main problem with them is that they completely took over the character to force it to do said animations, it felt very difficult to swap between those and animations that weren't supported... with the new system it means all animations are on the same system and everything works as expected (assuming your "states" are good when choosing which animation to play).
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Login to post a reply

Server time is: 2024-12-22 09:30:16
Your offset time is: 2024-12-22 09:30:16