Jump to content
Sign in to follow this  
.granQ.

Be Cool Do A Wheelie

Recommended Posts

First thanks to dkm for their suspension script that gave me this idea.

First you just keep on driving..

bike1.jpg

and then you see the pretty Angelina on the sidewalk, how to impress a girl that has everything a girl can ever ask for..

bike2.jpg

Of course, a wheelie can get you any girl quicker then you can say "sfp is the greatest and i need to check their homepage" ;)

Addon maker and wanna know how the magic work.

Okey, start with following dkm's tutorial. Do exactly as it says but 3 parts.

In landcontact, only make the front contact to the selection (sus_f).

In config you probaly wanna increase the angle some.

angle0= 0;

angle1= -0.523597;

That should make around 30 degress.

Instead of the eventhandler that checks the engine. Make a user action so you can choose when you want to trigger it.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class UserActions

{

class Wheelie

{

displayName="Wheelie";

position="pos driver";

radius=5.500000;

condition="player == driver this && this animationPhase ""suspension"" < 0.5;";

statement="[this,player] exec ""\your_addon\script\coolbike.sqs"";";

};

};

Of course changes the path to your addon

And this is how the coolbike.sqs looks like.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_bike = _this select 0

_bike animate ["suspension", 1]

~4

_this select 0 animate ["suspension", 0]

This addon isn't out yet (will come with sfp4.0 but guess there may be others that want this).

And since i am never first with anything I am sorry if i bring out old news. I don't keep track with the commuinty so much.

ohh and for the homepage, please visit us at http://swepack.game-host.org/

Share this post


Link to post
Share on other sites

so what can you initialize the script just by gunning the gas? or via actionmenu? or does it change how the vehicle sits on the ground from the get-go?

sorry for talking in circles, but what i'm trying to ask is can you wheelie on the fly?

Share this post


Link to post
Share on other sites

yes it is one action menu. Right now you can do a wheelie when standing still and when going topspeed. We probaly gonna make so you need atleast some speed, like 10 km/h. Since if you stand still, do a wheelie and then gas there is a chance that ofp bug you and overdo it and and bike is upside down.

And you shouldn't do it in uphill, same here, easy to "fall off".

Share this post


Link to post
Share on other sites
what bike is it on the pic

husqvarna 258, used by swedish army.

Share this post


Link to post
Share on other sites
what bike is it on the pic

husqvarna 258, used by swedish army.

husqvarna smile_o.gif

realy nice piece of wheels.

Share this post


Link to post
Share on other sites

oops I missed this. Looks cool smile_o.gif Does it go up smoothly or is it like you're on two wheels, press the option in action menu and you warp up on the rear wheel? How do you get down again? Break? Cut the gas?

Too bad the graphics are kinda poor so you can't tell much what the bike looks like.

Share this post


Link to post
Share on other sites

Why not? It ended up a few pages back and I'd like to have an answer smile_o.gif

Share this post


Link to post
Share on other sites

it is a animation so it goes smooth, right now it works with 4 sec delay, but would be easy to make it go down if you get lower speed.

Share this post


Link to post
Share on other sites
it is a animation so it goes smooth, right now it works with 4 sec delay, but would be easy to make it go down if you get lower speed.

Cool, and yeah it'd be best if you could make it go down by decreasing gas.

Share this post


Link to post
Share on other sites

Yeah, I remember the Husqvarna getting good reviews as a scout bike in Soldier of Fortune, Gung-Ho, or American Survival Guide magazines back in the '80's.

Share this post


Link to post
Share on other sites

well, it seams sweden is changing the old Husquarna 258 for KTM 250´s (or some other KTM bike)

Share this post


Link to post
Share on other sites

Any further development on this scripting so far, considering using it on some two wheeled projects. Also point this out to the DKM guys for consideration..

Share this post


Link to post
Share on other sites
Any further development on this scripting so far, considering using it on some two wheeled projects. Also point this out to the DKM guys for consideration..

well it works and is "done" so what should that be?

Share this post


Link to post
Share on other sites

Well was working on a race bike addon with DS, I've continued the project and overhauled the models, at least and implimented this script to the bikes, its linked to the engine RPMs now so wheelies are controlable. Just AI like to haul ass with theses bikes now and often ride the back tire till the back flip the bike and kill themselves. AI also now can race the bikes trying to fix the bikes so they run on the racing tracks used on OFP more. and use new animations created for them.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×