Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-27-2002, 01:25 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Car Script

Ive made a car script.. it looks pretty realsitic, but i was wondering... How fast should it go? I mean how fast is realistic?

At the moment it goes +1.5 as its top speed.. Which i made translates to 150 MPH.. But i dont know about accelerations because it goes 0-60 in like 4 seconds.. Can someone suggest a slower / more realistic acceleration?

Thanks.
__________________
- R0bin
Reply With Quote
  #2  
Old 09-27-2002, 01:27 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
How fast does it go compared to the normal walking speed?
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #3  
Old 09-27-2002, 01:30 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
normal walking speed is x+1*0.3 right?
well 60 mph would be x+1*0.6
and 150 mph would be x+1*1.5
__________________
- R0bin
Reply With Quote
  #4  
Old 09-27-2002, 01:33 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
which is impling that normal walking speed is 30 mph.. hmmmm

but if it goes any faster it goes too fast!
__________________
- R0bin
Reply With Quote
  #5  
Old 09-27-2002, 03:52 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Meh wanna see
__________________
V$:CONFL16T
Reply With Quote
  #6  
Old 09-27-2002, 03:52 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
You can **** right off.
__________________
- R0bin
Reply With Quote
  #7  
Old 09-27-2002, 05:00 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
Re: Car Script

Quote:
Originally posted by R0b1n-NPC
Ive made a car script.. it looks pretty realsitic, but i was wondering... How fast should it go? I mean how fast is realistic?

At the moment it goes +1.5 as its top speed.. Which i made translates to 150 MPH.. But i dont know about accelerations because it goes 0-60 in like 4 seconds.. Can someone suggest a slower / more realistic acceleration?

Thanks.
this.acceleration=#v(1*#v(this.speed)/0.3); ???
__________________
Reply With Quote
  #8  
Old 09-27-2002, 05:24 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
eh? you dont need those #v()'s dude..
__________________
- R0bin
Reply With Quote
  #9  
Old 09-27-2002, 05:31 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
sure you do if you do something like
this.speed++;
__________________
Reply With Quote
  #10  
Old 09-27-2002, 05:36 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by Goboom
sure you do if you do something like
this.speed++;
this.acceleration=1*this.speed/0.3;
would work fine
__________________
GONE, BAI
Reply With Quote
  #11  
Old 09-27-2002, 05:38 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
eh....whatever...i use the #v() just cause im used to it..
__________________
Reply With Quote
  #12  
Old 09-27-2002, 08:16 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Made a car like a year ago, it sucks but it works. I set the high speed at 1, which seems pretty dang fast on a map when you get going...
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #13  
Old 09-27-2002, 11:01 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Ah, I will make sure never to tell you things again r0bin x.X I told him this was what I was being tested for (1st thing) for 2k2. Then he goes and tries to make one x.X Mine isn't horribly complex I wouldn't say, but I don't think my Accessory script is either, and it's UBERLY huge x.X I'll probably post mine when it's finished. It makes you go forward in THAT direction when you press forward, and after my explanation to you of cos and sin you decided to make what I was x.X Pressing left or right increase the angle or decrease, so it moves in 360 degrees basically. when you press back is slows and goes into reverse. The CURRENT max speed is set to 3 but I may lower it to 2 or around there. And when you release going forward is slows to a halt instead of just stopping. And the faster you go the wider your turns are. So r0bin, let's see your finished one. I just have to add in onwall. Since I don't have gfx, it moves the player, which it would have to do anyway. By hiding the player and putting a gani or IMG up you would accomplish the same thing.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #14  
Old 09-28-2002, 03:33 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Heh, dumb confusing old script, the speed actually goes to 5. I'll post it so everybody can see that even an average scripter (me last year) can make a car. Of course a better scripter could make a cooler car, like what I had in mind but couldn't accomplish then.

Y'see that car pic in my sig? I was going to use that img for the car, but I never finished all the sprites.
Attached Files
File Type: zip car.zip (6.9 KB, 315 views)
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #15  
Old 09-28-2002, 03:35 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Angry

You treat me like ****, u work on my server, u have done nothing for us what i have seen only CTF It pisses me off what is ur god damm problem
*Robin*
__________________
V$:CONFL16T
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.