Forum

> > Stranded II > General > Working Running Script
ForenübersichtStranded II-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Working Running Script

7 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Working Running Script

Smurf
User Off Offline

Zitieren
Here is a script to make the Player Unit,1 Sprint in 2 second bursts by clicking the Right mouse button.If you keep pressing it you keep Sprinting ,and get thirsty.So Take water with you or you will dehydrate to much.

Just paste this script in "units.inf"


### Player
#ID 1 IS RESERVED FOR THE PLAYER UNIT!
id=1
name=Player
group=human
icon=gfx\strandedguy.bmp
model=gfx\strandedguy.b3d
colxr=8
colyr=17
eyes=16
store=100
health=100
damage=3
speed=1.1
acceleration=0.05
attackrange=45
maxweight=25000
healthchange=0
script=start

on:attack2
{ timer "self",000,1,"run";}

on:run {
speech "run";
drink 0,0,-0.5,0;
player_speed 2.9;
freetimers "self";
timer "self",2000,1,"walk";}

on:walk {

player_speed 1.1;
freetimers "self";

}
7× editiert, zuletzt 25.09.10 04:34:51

alt 3 more options

Greoz_GS
User Off Offline

Zitieren
Option 1: Health (or really FREESTATE!)
Option 2: Max weight to 500000 (or 5000 butterfly s)
Option 3: Super Damage.

That's it, it's look like a cheat mode (like dm).

Oh, if this works?

alt Re: Working Running Script

Lion_Hearted
User Off Offline

Zitieren
Yeah, looks cool, haven't checked it out yet, but does anyone know how to set the "attack2" key (in other-words, right click on the mouse) to something a little more specific... as it is, you have to have your hands free of anything like a hammer or etc just to run, because special tools have a right click function.


How about, if the key that you use changes from "right click" to lets say... "e"?

alt Re: Working Running Script

DannyDeth
User Off Offline

Zitieren
RazorBlade9 hat geschrieben
Zupaman ypu are obvously a newbie plese do not ask for stuff that has nothing to do with the thread .And smurf nice work


You haven;t exactly been here your whole life either. Lol, Zupaman Don;t worry about him

alt Re: Working Running Script

Antonhel
User Off Offline

Zitieren
Lion_Hearted hat geschrieben
Yeah, looks cool, haven't checked it out yet, but does anyone know how to set the "attack2" key (in other-words, right click on the mouse) to something a little more specific... as it is, you have to have your hands free of anything like a hammer or etc just to run, because special tools have a right click function.


How about, if the key that you use changes from "right click" to lets say... "e"?


Let's also say...the shift key? And also, nice run script.

alt Re: Working Running Script

Indiana266
User Off Offline

Zitieren
@Antonhel: MM made it the shift key aswell.
@Antonhel: See in that script, the on :attack2 run, check what key shift is named in the keys.inf then change attack2 to whatever shift is.

Err, I probably sound stupid for this but, I can't get it to work, I pasted it in the player unit but it doesn't work..
1× editiert, zuletzt 02.11.10 03:50:54
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtStranded II-ÜbersichtForenübersicht