Gamestudio Links
Zorro Links
Newest Posts
U4GM Arc Raiders: This Week's Vulpine Cosmetics
by Benniehench03. 08/12/26 05:23
What U4gm Expects From the CFB 27 Patch
by Benniehench03. 08/12/26 03:49
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Pause button for evaluation shell?
by jcl. 08/07/26 11:43
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
Fun Arcade Car Physics (nfs style)
by Ezzett. 08/02/26 21:11
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Benniehench03, VoroneTZ, mehrdad12), 5,963 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Benniehench03, riggi89, shuhari, KD1990, Student_64151
19226 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