OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: pileofsocks on 26 Jan 2004, 17:03:35
-
hey im looking for the NOS script, for example in Crime City. Any idea where i can find it? or if possible post it.
-
What the hell is NOS?
-
I would imagine it to be Nitrous Oxide...
never seen the script for it... but i would imagine it makes use of the setvelocity command
car setvelocity [0,0,4]
(fool around with the three numbers there.. I can never remember which is forward/backwards)
:cheers:
-
That would only work from stopped.. And would slow you down if your moving faster... I think ???
I deff. know that.. If you are driving left to right accross the map, it would make to slide sideways.. Fun.. But not to practical..
Use :
nos.sqs
; How much the car speeds up, change to what ever you what.. Max, what, 30?
_nosadd = 10
; Car you want to speed up..
_fastcar = supcar
; Get speeds in x and y directions
_velox = _fastcar velocity select 0
_veloy = _fastcar velocity select 1
; Not sure if this is needed?
_veloz = _fastcar velocity select 2
; I think you need to work out if your going 0, 90, 180 or 270 degres and work out which value to add _nosadd to.. Not sure how you do this though..?
;Possible (direction is the command, I think), then "if _dir < 90 GOTO add to velox".. ect.. I'll have a go later
_newvelo = _velox + _nosadd
;Speed up the car!
_fastcar setvelocity [_velox, _veloy,_veloz]
; Add new sound effects for super fast car here... If you want.. ::)
; _fastcar say "woosh.ogg", I think (Put woosh.ogg in /sounds/ me's think??)
; Needed?
end
I'm sure thats got a load of errors in it.. But I'm not brilliant at scripting (Learning though..)
Put in the players Init feild
this addaction ["NOS", "nos.sqs"]
I'll work on a better script tonight.. Try out that one, anyone, and let me know what I does (I'll test it later)
And I'll work on it from there.. Like making a limited ammout on NOS (Just a varaible, and take something from it every time you use the script..), and better direction stuff, so if your going at 128*, you go that direction, but faster..
Please point out any errors, so I can learn (*Nooooo!* :P) from them ;)
Cheers
- Ben
BTW, I've commented it.. If it make it clearer..
-
one error i have found is
'_fastcar I#I setvelocity [_velox, _veloy,_veloz]' :error unknown operator setvelocity
(I#I the I's are ment to be lines not eyes)
-
Nitrous oxide is usually abbreviated to NOX, I thought. Maybe that's another of these UK/US things. Anyway, until we hear from the originator of this thread there's no point in getting tooooooo bogged down.
-
Nitrous oxide is usually abbreviated to NOX, I thought.
:hmm: Nitrous Oxide is abbreviated as NO, not NOX.
-
I've made a 'kind of a NOS script', but with these skills it's very hard to maintain a decent control of the vehicle. Works great as a aircratf arterburned though and it's funny when you attach it to a moped :D
-
NOx is the generic term for nitrous oxides
But we're straying off topic here .... pileofsocks, come back and tell us what your question is really about.
-
NOS is actually a brand name for a company that specifies in Nitrous Oxide systems and parts for high performance cars.
http://www.imotorgear.com/brandcategory.asp?source=&brand=nos&source=google-nos (http://www.imotorgear.com/brandcategory.asp?source=&brand=nos&source=google-nos)
I don't see how anything else could be meant, especially since the NOS script is in crime city and pileofsocks assumed we'd know what was meant..
However...
Pileofsocks... Are we correct?? ::) :P ;)
Asmo
-
yes, forgive me because i forget many ofp players dont play crime city, it is am od wherre when u are in a specific car, you can activate NOS in the action menu. I was wondering what would i have to type in order to make that script. And also, im not a car whiz ;D or anything remotely to it, so forgive me on the NOS thing, lol. thats how i saw it. Im pretty new at scripting, reading on it as much as possible, so forgive the noobness. lol, ok yeah put everything on here in NOOB scripting terms. ty