Author Topic: LUA: Zombine SWEP Problem D:  (Read 204 times)

0 Members and 1 Guest are viewing this topic.

Offline Shawny </3

  • **
  • Posts: 67
  • Gender: Male
  • Tarantula Lover<3
  • Respect: +6
LUA: Zombine SWEP Problem D:
« on: March 18, 2012, 09:17:23 PM »
+1
Ok so I made a zombine swep for mine and Kurtis's Zombie Survival server and it works nearly 100%. But it sometimes doesn't use the attack animation.

I increased and decreased the delay and animations are correct. This doesn't happen very often but it can be irritating D:


The attack animation code is proper.

   if self.SwapAnims then
      self:SendWeaponAnim(ACT_VM_HITCENTER)
   else
      self:SendWeaponAnim(ACT_VM_PRIMARYATTACK)
   end
   self.SwapAnims = not self.SwapAnims



I would put the entire coding in here but It wont fit :C

So if anyone can give me an idea I will give you gummy bears :3




It works 100% fine except for this 1 problem...


Thanks in advanced...
P. Metallica <3

Offline coolzeldad

  • ******
  • OwnerDonatorOld Forum MemberrNd DeveloperLinux UserWindows UserDog LoverLeague PlayerDWO Player
    View More Badges!

  • Posts: 3333
  • I eat ddos for breakfast OMNOMONOM
  • Respect: +2711
    • .:`=-~rANdOm~`-=:. Game Servers
Re: LUA: Zombine SWEP Problem D:
« Reply #1 on: March 18, 2012, 10:01:58 PM »
0
Could you provide more information on the circumstances when this problem happens?

Also are you testing on a local server? Does the animation not play only on clients not on the local server... only to specific pings, etc.
 ▲
▲▲Big thanks to Marie for this awesome sprite! :3

Spoiler: Moar Imagez (click to show/hide)
pingaz
Thanks Cryptokid!

Thanks gamefreak!


-- My youtube: http://www.youtube.com/coolzeldad
-- My deviantart: http://coolzeldad.deviantart.com
-- My soundcloud: http://www.soundcloud.com/coolzeldad
-- My ustream: http://www.ustream.tv/channel/coolzeldapingaz
-- My twitchtv: http://www.twitch.tv/coolzeldad

-- rNd Wiki: http://wiki.randomgs.com
-- rNd Youtube: http://www.youtube.com/RandomgsProductions
-- rNd Steam Group: http://steamcommunity.com/groups/r_A_N_d_O_m

Spoiler: rNd Typography (click to show/hide)





Every time you download Garry's Mod illegally, Garry makes a bug.

When people ask me "Plz" because its shorter than "Please" I feel perfectly justified to answer "No" because its shorter than "Yes".

derp herp lerp perp kerp serp zerp - say faiv timez fazt


Offline Shawny </3

  • **
  • Posts: 67
  • Gender: Male
  • Tarantula Lover<3
  • Respect: +6
Re: LUA: Zombine SWEP Problem D:
« Reply #2 on: March 18, 2012, 10:37:56 PM »
0
Could you provide more information on the circumstances when this problem happens?

Also are you testing on a local server? Does the animation not play only on clients not on the local server... only to specific pings, etc.


Wow a reply from the man himself o.O



Ok when you hold your left mouse button and your zombie arms keep attacking, sometimes it doesn't play the attack animation.
I am testing it on our web hosted server.



*MOAR Detail*
When your attacking with the zombie arms swep your arms always swing continuously. with the zombine swep that i made sometimes(1/4 chance) the animation doesnt play.
Do i need to add a delay?


*EDIT*
My ping on the server is around 100.

On the RND Zombie Survival(when it was up) I usually had a ping of 150 - 200 and my arms worked perfectly.

Also im not sure if it's lag but it seems when the arms hit the actual hit happens 1/4 of a second after the arms hit the wall. That may be just lag though.
« Last Edit: March 19, 2012, 07:36:16 AM by Gangrelion »
P. Metallica <3

Offline Mehis

  • ****
  • Posts: 400
  • Gender: Male
  • lolbai
  • Respect: +88
Re: LUA: Zombine SWEP Problem D:
« Reply #3 on: March 28, 2012, 09:38:28 AM »
0
I think there is nothing wrong with the code. If the animations work in a local server, it just means that the animations of the model are too long, short or even compiled wrong, which just happens in most of the games when high latency.
I get no animations from ZS sometimes when I hold attack too.

Oh god I didn't see the post date...
« Last Edit: March 28, 2012, 09:39:59 AM by Mehis »

Offline Shawny </3

  • **
  • Posts: 67
  • Gender: Male
  • Tarantula Lover<3
  • Respect: +6
Re: LUA: Zombine SWEP Problem D:
« Reply #4 on: April 05, 2012, 11:14:50 AM »
0
I think there is nothing wrong with the code. If the animations work in a local server, it just means that the animations of the model are too long, short or even compiled wrong, which just happens in most of the games when high latency.
I get no animations from ZS sometimes when I hold attack too.

Oh god I didn't see the post date...

Oh ok thank you. But one question, if i add a delay to it would it help a bit?
P. Metallica <3

Offline Tomcat

  • Your Argument is Inert
  • ******
  • Donator
    View More Badges!

  • Posts: 2539
  • Gender: Male
  • Wat Do?
  • Respect: +503
    • Tomcat's blog
Re: LUA: Zombine SWEP Problem D:
« Reply #5 on: April 06, 2012, 08:48:02 AM »
0
It would be nicer if you could give us the whole hook you're currently running in (assuming its primary attack)

Offline Shawny </3

  • **
  • Posts: 67
  • Gender: Male
  • Tarantula Lover<3
  • Respect: +6
Re: LUA: Zombine SWEP Problem D:
« Reply #6 on: April 07, 2012, 12:55:36 AM »
0
It would be nicer if you could give us the whole hook you're currently running in (assuming its primary attack)

The attack animation is ACT_VM_SECONDARRYATTACK


ACT_VM_PRIMARRYATTACK is the anim for reaching for a grenade.

But i got it fixed now.
P. Metallica <3