Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Car Script (https://forums.graalonline.com/forums/showthread.php?t=38600)

R0b1n-NPC 09-27-2002 01:25 AM

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.

AlexH 09-27-2002 01:27 AM

How fast does it go compared to the normal walking speed?

R0b1n-NPC 09-27-2002 01:30 AM

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

R0b1n-NPC 09-27-2002 01:33 AM

which is impling that normal walking speed is 30 mph.. hmmmm

but if it goes any faster it goes too fast!

WanDaMan 09-27-2002 03:52 AM

Meh wanna see;)

R0b1n-NPC 09-27-2002 03:52 AM

You can **** right off.

Goboom 09-27-2002 05:00 AM

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); ???

R0b1n-NPC 09-27-2002 05:24 AM

eh? you dont need those #v()'s dude..

Goboom 09-27-2002 05:31 AM

sure you do if you do something like
this.speed++;

Graal2001_NAT 09-27-2002 05:36 AM

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

Goboom 09-27-2002 05:38 AM

eh....whatever...i use the #v() just cause im used to it..

Dach 09-27-2002 08:16 AM

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...

emortylone 09-27-2002 11:01 PM

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

Dach 09-28-2002 03:33 AM

1 Attachment(s)
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.

WanDaMan 09-28-2002 03:35 AM

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:mad:
*Robin*

emortylone 09-28-2002 04:24 AM

I thought we were cloes R0bin... I feel a bit betrayed at the moment ='/
---Shifter

R0b1n-NPC 09-28-2002 04:38 AM

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:mad:
*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.

Mustang1988 09-28-2002 08:14 AM

1 Attachment(s)
Cool. I remember shrimps.. Found the NPC. ;O

Mustang1988 09-28-2002 08:15 AM

1 Attachment(s)
Cop Car.

His were cool. These are the cars he was going to use for his modern playerworld, I think, until he stopped.

R0b1n-NPC 09-28-2002 08:41 AM

Mine can move in 360 directions. ;)

emortylone 09-28-2002 09:52 AM

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

R0b1n-NPC 09-28-2002 09:55 AM

Actually, I made mine before you sent me yours ;)

emortylone 09-28-2002 09:58 AM

WTF ever! Dude, you didn't even understand cos or sin... so how could you have until I sent you mine =/
---Shifter

R0b1n-NPC 09-28-2002 10:02 AM

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.


Goboom 09-28-2002 07:20 PM

And yet another rivalry starting :(

R0b1n-NPC 09-29-2002 12:54 AM

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 :D

emortylone 09-29-2002 03:19 AM

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

R0b1n-NPC 09-29-2002 03:34 AM

maths = universal language baby. :-D

WanDaMan 09-29-2002 03:24 PM

Maths = hard x.x
i prefer english
hehe thisll be fun;)

emortylone 09-29-2002 09:25 PM

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

R0b1n-NPC 09-29-2002 10:30 PM

You do sarcasm so well ¬_¬

Goboom 09-30-2002 05:42 AM

Quote:

Originally posted by R0b1n-NPC
You do sarcasm so well ¬_¬
LOL! I prefer Lunch over all of them...

R0b1n-NPC 09-30-2002 08:37 AM

Quote:

Originally posted by Goboom

LOL! I prefer Lunch over all of them...

You what?

Psycho_Goldfish42 10-12-2002 02:00 AM

Lunch...
 
What lunch has to do with it, but hey, I agree with Lunch dude! :D

irock1 09-08-2011 12:39 PM

Can i get a car script?

irock1 09-08-2011 01:46 PM

Quote:

Originally Posted by R0b1n-NPC (Post 725026)
You do sarcasm so well ¬_¬

ah can i get a car script :D

Crono 09-08-2011 04:47 PM

Quote:

Originally Posted by irock1 (Post 1667444)
Can i get a car script?

This thread might just be older than you.

lol @ wan :p

Rave_J 09-08-2011 07:37 PM

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

papajchris 09-08-2011 08:16 PM

This robin guy sounds like a arrogant *****

fowlplay4 09-08-2011 08:20 PM

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);




All times are GMT +2. The time now is 10:09 PM.

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