Gamestudio Links
Zorro Links
Newest Posts
Z9 getting Error 058
by k_ivan. 04/20/26 15:57
Stooq now requires an API key
by jcl. 04/13/26 09:42
Strange "Alien" Skull created with >Knubber<
by NeoDumont. 04/10/26 18:58
400 free seamless texture pack downl. here !
by NeoDumont. 04/08/26 19:55
ZorroGPT
by TipmyPip. 04/08/26 17:08
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, Grant, AndrewAMD), 3,498 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
juergenwue, VladMak, Geir, ondrej, mredit
19208 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
animated weapons help #401613
05/22/12 16:57
05/22/12 16:57
Joined: May 2012
Posts: 15
italy
M
mimmo86 Offline OP
Newbie
mimmo86  Offline OP
Newbie
M

Joined: May 2012
Posts: 15
italy
it's possible use an animated fps weapon(stand, reload and shoot frame) with shooter template from aum 103?

tanks

Re: animated weapons help [Re: mimmo86] #401619
05/22/12 17:50
05/22/12 17:50
Joined: Jul 2008
Posts: 2,111
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,111
Germany
I dont know aum 103 but u can add something like this to get it work:

Code:
function anm_my_weapon()
{
 while(my)
 {
  my.skill2 += time_step;

  if (my.skill1 == 0) ent_animate(me, "idle",   my.skill2, ANM_CYCLE);
  if (my.skill1 == 1) ent_animate(me, "shoot",  my.skill2, NULL);
  if (my.skill1 == 2) ent_animate(me, "reload", my.skill2, NULL);
  wait(1);
 }
}



And in your weapon code add this:

Code:
anm_my_weapon();



Now u can control the animations with my.skill1. 0 = idle, 1 = shoot, 2 = reload. F.ex. add this into your firing function
Code:
my.skill1 = 1;

This is a very basic animation script. With a small work around it should fit what u need. Fex this code will stay in shoot-animation after skill1 was set to 1.

maybe this helps you

greets


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;
Re: animated weapons help [Re: rayp] #401681
05/23/12 10:06
05/23/12 10:06
Joined: May 2012
Posts: 15
italy
M
mimmo86 Offline OP
Newbie
mimmo86  Offline OP
Newbie
M

Joined: May 2012
Posts: 15
italy
very very tanks rayp....bravo

Re: animated weapons help [Re: mimmo86] #413385
12/12/12 23:52
12/12/12 23:52
Joined: Apr 2012
Posts: 106
G
GaniX Offline
Member
GaniX  Offline
Member
G

Joined: Apr 2012
Posts: 106
ho thanks you lord, because i wanted something like this

Re: animated weapons help [Re: GaniX] #414602
01/05/13 16:49
01/05/13 16:49
Joined: Jul 2008
Posts: 2,111
Germany
rayp Offline

X
rayp  Offline

X

Joined: Jul 2008
Posts: 2,111
Germany
I made a very basic tut for all guys looking for this ( simple weapon, player and enemy + a barrel to blow off ).

http://www.rp-interactive.nl/ws/shooting.zip

have fun


Acknex umgibt uns...zwischen Dir, mir, dem Stein dort...
"Hey Griswold ... where u gonna put a tree that big ?"
1998 i married my loved wife ... Sheeva from Mortal Kombat, not Evil-Lyn as might have been expected
rayp.flags |= UNTOUCHABLE;

Moderated by  HeelX, rvL_eXile 

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