Scripts / Motion Tracker

Author
Message
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2019 16:37 Edited at: 2nd Apr 2019 18:58
edit (02/04/2019) - first release version;
- assign motion_tracker.lua to an object (set to be a collectable so best if it looks like your motion tracker image)
- add an image to "scriptbank\images\motion_tracker\" called "motion_tracker.png"
- add an image to same folder called "motion_dot.png"

when collected you can hold the Q key to scan for movement (only actual movement is detected - not animations)
*note* relies on your entity having 'ai_bot_state[e]' in the script (just add it to the init(e) if it isn't used - i.e. ai_bot_state[e] = "" would be fine)

i have attached the lua and images i used for testing below but obviously the motion tracker image is copyright from the alien franchise so you should create your own

another script coming soon - based on the Alien motion tracker
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11

Attachments

Login to view attachments
Pirate Myke
Forum Support
14
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 1st Apr 2019 17:49
Great stuff. Looking forward to it.
Thanks for posting.
RIP
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.

New:
Intel(R) Core(TM) i5-8400 CPU @ 2.81GHz, 12GB RAM, Nvidia gtx1050ti 4gb, Windows 10 Home 64bit, Screen resolution 1920 x 1080. System Passmark 3774




bluemeenie195
6
Years of Service
User Offline
Joined: 28th Oct 2018
Location:
Posted: 1st Apr 2019 20:05
Nice !
PM
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 1st Apr 2019 22:36
Lol, takes me back a bit, about three years in fact when I did this one:

Been there, done that, got all the T-Shirts!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 1st Apr 2019 22:51
yep, similar but i wanted it to be a recreation of the alien motion tracker, not a radar - i.e. the dots disappear when the target is not moving - though of course this uses the same technique
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 2nd Apr 2019 00:21
That was my plan as well, other stuff sort of got in the way though.
Been there, done that, got all the T-Shirts!
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 2nd Apr 2019 18:59
edited the original post with the first release version
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Mipastu
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 16th Feb 2015
Location: Finland
Posted: 17th Apr 2019 19:45
Thank you again smallg!
Intel Core i5 6600K @ 3.50GHz ¨ 16,0Gt dual channel RAM @ 1334MHz ¨¨ 2048MtNVIDIA GeForce GTX 1060 6GB ¨¨ 465GB Samsung SSD 750 EVO 500GB (SSD) ¨¨ Windows 10 Home 64-bit
thughto
6
Years of Service
User Offline
Joined: 7th Mar 2018
Location:
Posted: 18th Apr 2019 07:44
Thanks smallg for your amazing work!
PM

Login to post a reply

Server time is: 2024-12-22 14:23:45
Your offset time is: 2024-12-22 14:23:45