Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by jcl. 09/29/26 09:37
A3 projects
by Yopachi. 09/28/26 17:04
Parent/child object
by rayp. 09/27/26 14:43
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (3run, 1 invisible), 3,839 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tb58k1ln, KelleyAbbey, Yopachi, Knull, Opus
19243 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Animation #4725
06/20/01 16:31
06/20/01 16:31

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



hi all !

ich hab schon eine Reload-Animation für meine Waffe gemacht und möchte diese nun einbinden das man dann mit ON_R Nachladen kann...kann mir jemand den Code geben?

------------------
Danke im voraus
Gruss
Eric


Re: Animation #4726
06/20/01 17:02
06/20/01 17:02

A
Anonymous OP
Unregistered
Anonymous OP
Unregistered
A



funktion gerade nach weapon_fire einfügen:
//reload weapon
function weapon_reload() {
weapon_reloading = 1;
WHILE (KEY_R) { WAIT 1; }


}
folgendes umschreiben:
// handle firing
while(weapon == ME)
{
if(weapon_firing && (gun_loaded > 0) && (MY._FIRE <= 0) )
{
gun_fire();
}
IF(weapon_reloading==1)
{
weapon_reloading = 0;
gun_reload();
}
if((weapon_firing == 0) && (gun_loaded == 0) && (MY.__REPEAT == OFF))
{
gun_loaded = 1;
}
wait(1);
}
return(weapon_number);
}

und dann brauchst du noch die funktion gun_reload wo die animation geschrieben steht. Ich habe noch den alten animations code, ist total unuebersichtlich, nach neuen mcode sollte das aber einfach sein.


Re: Animation #4727
06/20/01 18:29
06/20/01 18:29
Joined: Jul 2000
Posts: 478
hamburg, germany
J
jotha Offline
Senior Member
jotha  Offline
Senior Member
J

Joined: Jul 2000
Posts: 478
hamburg, germany
EDIT: wrong ttopic, sorry!

[This message has been edited by jotha (edited 20 June 2001).]



Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1