Graal Forums  

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

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, 355 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
  #16  
Old 09-28-2002, 04:24 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I thought we were cloes R0bin... I feel a bit betrayed at the moment ='/
---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
  #17  
Old 09-28-2002, 04:38 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Quote:
Originally posted by WanDaMan
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*
You have only seen CTF because you and your brother, are labeled as script stealers. no offence. You contiue to insult me on these boards or anywhere else and i quit your stupid server.

Quote:
Originally posted by emortylone
I thought we were cloes R0bin... I feel a bit betrayed at the moment ='/
---Shifter
Why do you feel betrayed?
You say i am not worthy to be your equal, but As i have prooved time and time again, That i am at least your equal.

You are in a group of people who think they are the best, but have a very large space, where improvement could fill.

What i think is funny, is that you were working on your car script for at least a day before you told me about it, then you gave me a tutorial on how to use sin and cos, and *boom*, about 4 hours later, i had made a car script, that surpassed yours.

I would give my car script out but as Era are now going to use it for their server i cannot.

You put down my scripting every chance you get, and YOU feel betrayed?

Grow up.
__________________
- R0bin
Reply With Quote
  #18  
Old 09-28-2002, 08:14 AM
Mustang1988 Mustang1988 is offline
Registered User
Mustang1988's Avatar
Join Date: Mar 2001
Location: California
Posts: 0
Mustang1988 is on a distinguished road
Cool. I remember shrimps.. Found the NPC. ;O
Attached Thumbnails
Click image for larger version

Name:	shrimpsuberleetcar.png
Views:	272
Size:	20.2 KB
ID:	20937  
__________________
Reply With Quote
  #19  
Old 09-28-2002, 08:15 AM
Mustang1988 Mustang1988 is offline
Registered User
Mustang1988's Avatar
Join Date: Mar 2001
Location: California
Posts: 0
Mustang1988 is on a distinguished road
Cop Car.

His were cool. These are the cars he was going to use for his modern playerworld, I think, until he stopped.
Attached Thumbnails
Click image for larger version

Name:	shrimpsuberleetcar2.png
Views:	273
Size:	22.9 KB
ID:	20938  
__________________
Reply With Quote
  #20  
Old 09-28-2002, 08:41 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Mine can move in 360 directions.
__________________
- R0bin
Reply With Quote
  #21  
Old 09-28-2002, 09:52 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Heh, those only move in four directions. GFX are nice though. r0bin, wtf are you talking about? You didn't even have a clue about how to do it until I sent you my script =/
---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
  #22  
Old 09-28-2002, 09:55 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Actually, I made mine before you sent me yours
__________________
- R0bin
Reply With Quote
  #23  
Old 09-28-2002, 09:58 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
WTF ever! Dude, you didn't even understand cos or sin... so how could you have until I sent you mine =/
---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
  #24  
Old 09-28-2002, 10:02 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Well, the Basic tutorial you gave me before i started writing it could of helped. also the basic trig websites prozac gave me.

Idiot.


Quote:

R0bin Darkrune: ~Actually, I started scripting the car as soon as you told me about your 2k2 submission to angel..

If you recall, i sent you my test level, with my analog clock, and my car script. BEFORE you sent me your car script.
ProjectShifter: but yours didn't have the whole cos and sin in it I don't believe
R0bin Darkrune: Uhhhh
R0bin Darkrune: You are a *****
ProjectShifter: x.X
R0bin Darkrune: HOW COULD IT GO IN CIRCLES LIKE THAT WITHOUT COS AND SIN???
R0bin Darkrune: Jesus christ
ProjectShifter: x.X
R0bin Darkrune: i thought you had more intelligance than that.
ProjectShifter: I thought you said this wouldn't come between us...
ProjectShifter: I didn't look at your car script much... I was busy
R0bin Darkrune: It shouldnt have done, then you started whining on the forums.
__________________
- R0bin
Reply With Quote
  #25  
Old 09-28-2002, 07:20 PM
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
And yet another rivalry starting
__________________
Reply With Quote
  #26  
Old 09-29-2002, 12:54 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Quote:
Originally posted by Kaimetsu
Incidentally, you really don't need sin or cos to do this.
Yeah but its soo much easier with Sin and cos
__________________
- R0bin
Reply With Quote
  #27  
Old 09-29-2002, 03:19 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I don't know about EASIER, but I'd say more EFFICIENT to use sin and cos. Plus the time it takes to load the script. I think it would be prone a bit more to errors otherwise.
---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
  #28  
Old 09-29-2002, 03:34 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
maths = universal language baby. :-D
__________________
- R0bin
Reply With Quote
  #29  
Old 09-29-2002, 03:24 PM
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
Maths = hard x.x
i prefer english
hehe thisll be fun
__________________
V$:CONFL16T
Reply With Quote
  #30  
Old 09-29-2002, 09:25 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Ah, how can math be that hard for the most excellent scripter known as Wan? We all know he can script much better than BOTH R0bin and I COMBINED so it shouldn't be that hard for you should it?
---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
  #31  
Old 09-29-2002, 10:30 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
You do sarcasm so well ¬_¬
__________________
- R0bin
Reply With Quote
  #32  
Old 09-30-2002, 05:42 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
Quote:
Originally posted by R0b1n-NPC
You do sarcasm so well ¬_¬
LOL! I prefer Lunch over all of them...
__________________
Reply With Quote
  #33  
Old 09-30-2002, 08:37 AM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
Quote:
Originally posted by Goboom

LOL! I prefer Lunch over all of them...
You what?
__________________
- R0bin
Reply With Quote
  #34  
Old 10-12-2002, 02:00 AM
Psycho_Goldfish42 Psycho_Goldfish42 is offline
Registered User
Join Date: Sep 2002
Posts: 24
Psycho_Goldfish42 is on a distinguished road
Lunch...

What lunch has to do with it, but hey, I agree with Lunch dude!
Reply With Quote
  #35  
Old 09-08-2011, 12:39 PM
irock1 irock1 is offline
Registered User
Join Date: Aug 2011
Posts: 20
irock1 can only hope to improve
Can i get a car script?
__________________
YOUR A
Reply With Quote
  #36  
Old 09-08-2011, 01:46 PM
irock1 irock1 is offline
Registered User
Join Date: Aug 2011
Posts: 20
irock1 can only hope to improve
Exclamation

Quote:
Originally Posted by R0b1n-NPC View Post
You do sarcasm so well ¬_¬
ah can i get a car script
__________________
YOUR A
Reply With Quote
  #37  
Old 09-08-2011, 04:47 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by irock1 View Post
Can i get a car script?
This thread might just be older than you.

lol @ wan
__________________
Reply With Quote
  #38  
Old 09-08-2011, 07:37 PM
Rave_J Rave_J is offline
Graal Developer
Join Date: Feb 2006
Location: Texas
Posts: 848
Rave_J can only hope to improve
Send a message via AIM to Rave_J Send a message via MSN to Rave_J Send a message via Yahoo to Rave_J
wan can script
???
oh wait Hey Andrew
Come in my bed room and script this damn thing for me before i kick ur butt !

or maybe Andrew has different personalitys and
he plays Wan,Andrew and that one girlly account of his lol
so depending what personality he is that time thats what accounts he plays on
__________________
Graal Developer
Reply With Quote
  #39  
Old 09-08-2011, 08:16 PM
papajchris papajchris is offline
Zeus Condero
papajchris's Avatar
Join Date: Jan 2006
Location: Michigan
Posts: 1,600
papajchris is a splendid one to beholdpapajchris is a splendid one to beholdpapajchris is a splendid one to beholdpapajchris is a splendid one to behold
This robin guy sounds like a arrogant *****
__________________
Reply With Quote
  #40  
Old 09-08-2011, 08:20 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
You're on some next level stuff if you quote and reply to a comment made in 2002.

Here's a low quality remote control block:

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
this.cx player.x;
  
this.cy player.y;
  
setTimer(0.05);
}

function 
onTimeout() {
  
freezeplayer(0.05);
  
showimg(20"block.png"this.txthis.ty);
  for (
temp.0temp.4temp.i++) {
    if (
keydown(temp.i)) {
      
this.tx vecx(temp.i);
      
this.ty vecy(temp.i);
    }
  }
  
setTimer(0.05);

__________________
Quote:
Reply With Quote
Reply


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 01:44 AM.


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