Scripts / Transport!

Author
Message
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 26th May 2014 20:18 Edited at: 28th May 2014 18:01
ok so you MUST know the vehicle (e) number and you MUST place the 12 characters around it straight after you place the vehicle



note i placed them from top left in a clockwise fashion

(the back 3 will be placed at the front as well however - see pic)



picture for layout



















edit, this is my example path (i have now hit an error with my testing - collision isnt working as it did before - it keeps kicking me out of the space rather than keeping me inside it)





and this requires some functions from inside globals

































let me know if you get it working or can help expand it... i think this could be useful until real transport gets included (looks like it'll be a couple months yet)

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
TattieBoJangle
10
Years of Service
User Offline
Joined: 7th Jan 2014
Location: United Kingdom
Posted: 26th May 2014 20:37
Nice one smallg looks promising





PC SPECS: Windows 8 Pro 64-bit, Intel I7 (PASSMARK 9529) 4GHz CPU, Asus R9 3GB GPU (PASSMARK 6858) 32GB DDR3 MEM (PASSMARK 2842)
almightyhood
10
Years of Service
User Offline
Joined: 9th Oct 2013
Location:
Posted: 26th May 2014 21:21
cool smallg nicem8 .

evga GeForce gtx 750 ti boost2.0 2gb gddr5. win 8.1 quad core 4gb ram.
PM
Auger
12
Years of Service
User Offline
Joined: 21st Aug 2011
Location: Out There
Posted: 27th May 2014 03:28
Did you ever get RotateToPlayer() or LookAtPlayer() to work Smallg? Both do nothing from what I've tried



Auger
J0linar
GameGuru TGC Backer
14
Years of Service
User Offline
Joined: 3rd Feb 2010
Location: Vienna, AT
Posted: 27th May 2014 16:18
Really nice, with this a onrail shooter or a automated cutscene could be made pretty easy.



Will watch this closely

http://j0linar.blogspot.co.at/



PC SPECS: Windows 8 Pro 64-bit, Intel I7-3630QM 4.8GHz CPU, Nvidia GTX 675M - 2048MB GPU, 16GB DDR3 RAM
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th May 2014 19:43
Quote: "Did you ever get RotateToPlayer() or LookAtPlayer() to work Smallg? Both do nothing from what I've tried"




nope, they have no effect for me either

i just used the RotateY(e,v); for this .... i do really need the RotateToPlayer(e)/LookAtPlayer(e) code working though for my new game - it clearly works in the AI code as they use LookAtPlayer(e) for their rotations but i guess i'm missing something so i plan to try understand the AI code more



Quote: "Really nice, with this a onrail shooter or a automated cutscene could be made pretty easy.

"




yes it should be pretty useful for something like that... i can't currently come up with a way to allow the player to determine the route so it needs to be scripted.



i may look into stealing the waypoint check from the AI and just use that as a possible "track" but haven't tested that yet

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 28th May 2014 15:42 Edited at: 28th May 2014 16:40
edit nvm, typing error



also i just realised it wont be possible to shoot out of the transport - you would be shooting the barriers that keep you inside the vehicle... i guess it may be possible if you used smaller barriers but then i'm not sure you would be able to keep the player from jumping out...

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Yurif74
GameGuru TGC Backer
10
Years of Service
User Offline
Joined: 1st Aug 2013
Location: italy
Posted: 28th May 2014 16:37
could you use a barrier like fences? player can't go through but bullets can!



Amiga 4000 CSMK1 68060@50mhz, 200mb fast, CV64 4mb, Scandoubler, MiniThylacine 4 port USB, FastAta MKVI 4000, DVD+RW, HDD 120gb pio 5.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 28th May 2014 16:42
no, dont think fences work... i havent done much testing but from my tests only characters work - no idea why.... maybe someone with some modelling knowledge can answer that but for some reason they just "collide" differently to anything else.

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-04-20 12:42:08
Your offset time is: 2024-04-20 12:42:08