[SNIPPED] Zombie Jack NPC

Started by kennedyarz, Jun 13, 2017, 01:14 AM

Previous topic - Next topic

kennedyarz


Zombie Jack

Hello I bring you a funny zombie, which consists of the players being terrified and at the same time he can kill you as you can kill the zombie (I know I could have done better, but something is fine)

Credits:
@kennedyarz Develop
@PunkNoodle Ported zombie



Happy death :\/




luchgox

Virus detected 1/56

Anyway,Good Work
Strength does not come from wining.Your struggles develop your strengths.

MEGAMIND

Quote from: kennedyarz on Jun 13, 2017, 01:14 AM

Zombie Jack

Hello I bring you a funny zombie, which consists of the players being terrified and at the same time he can kill you as you can kill the zombie (I know I could have done better, but something is fine)

Credits:
@kennedyarz Develop
@PunkNoodle Ported zombie

Download


Happy death :\/








awsome tested it...freaking noise and when u hit on his head after some time he dies with dangerous noise








keepit up kenny looking more from u

EK.IceFlake


vito1

kennedyarz is infected, anyone go kill him fast before his turning into a zombie

MatheuS

Quote from: vito1 on Jun 13, 2017, 06:23 AMkennedyarz is infected, anyone go kill him fast before his turning into a zombie

hahhahahhaha.
if( !sucess ) tryAgain();
Thanks to the VCMP community. It was the happiest period of my life.

kennedyarz

Quote from: EK.IceFlake on Jun 13, 2017, 06:02 AMThis is a very good example of why you should not include executables in your script files.

The virus that frame is the zombie, but it's just that fucking antivirus probe with several and nothing.

Quote from: vito1 on Jun 13, 2017, 06:23 AMkennedyarz is infected, anyone go kill him fast before his turning into a zombie

hahahahahaha. I guess it's the zombie XD 1/50

Anik

Use switch case instead of tons of if statements.

if( M == 1 ) { NPC.MoveTo( Vector( NPC.Pos.x + 2, NPC.Pos.y, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }
if( M == 2 ) { NPC.MoveTo( Vector( NPC.Pos.x - 2, NPC.Pos.y, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }
if( M == 3 ) { NPC.MoveTo( Vector( NPC.Pos.x, NPC.Pos.y + 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }
if( M == 4 ) { NPC.MoveTo( Vector( NPC.Pos.x, NPC.Pos.y - 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }
    if( M == 5 ) { NPC.MoveTo( Vector( NPC.Pos.x + 2, NPC.Pos.y + 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }
if( M == 6 ) { NPC.MoveTo( Vector( NPC.Pos.x + 2, NPC.Pos.y - 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }
if( M == 7 ) { NPC.MoveTo( Vector( NPC.Pos.x - 2, NPC.Pos.y + 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }
if( M == 8 ) { NPC.MoveTo( Vector( NPC.Pos.x - 2, NPC.Pos.y - 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); }

 Like this :

switch( M )
{
case 1: NPC.MoveTo( Vector( NPC.Pos.x + 2, NPC.Pos.y, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
case 2: NPC.MoveTo( Vector( NPC.Pos.x - 2, NPC.Pos.y, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
case 3: NPC.MoveTo( Vector( NPC.Pos.x, NPC.Pos.y + 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
case 4: NPC.MoveTo( Vector( NPC.Pos.x, NPC.Pos.y - 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
    case 5: NPC.MoveTo( Vector( NPC.Pos.x + 2, NPC.Pos.y + 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
case 6: NPC.MoveTo( Vector( NPC.Pos.x + 2, NPC.Pos.y - 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
case 7: NPC.MoveTo( Vector( NPC.Pos.x - 2, NPC.Pos.y + 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
case 8: NPC.MoveTo( Vector( NPC.Pos.x - 2, NPC.Pos.y - 2, NPC.Pos.z ), 3000 ); NPC.RotateToEuler( Vector( NPC.RotationEuler.x, NPC.RotationEuler.y, NPC.RotationEuler.z + 1 ), 1000 ); break;
}

kennedyarz

Quote from: Anik on Jun 13, 2017, 12:44 PMUse switch case instead of tons of if statements.

Thx for suggestion Updated

SAzEe21



[TkD]MarineForce123

PUNK NOODLE GIVE ME FULL SETUP OF ZOMBIE JACK SERVER.CFG SERVER.CONF SCRIPTS SERVER.EXE  STORE MAIN NUT

EK.IceFlake

Quote from: [TkD]MarineForce123 on Jun 16, 2017, 08:23 AMPUNK NOODLE GIVE ME FULL SETUP OF ZOMBIE JACK SERVER.CFG SERVER.CONF SCRIPTS SERVER.EXE  STORE MAIN NUT
Clicky.

[TkD]MarineForce123

https://forum.vc-mp.org/?action=pm;sa=send


ERROR           ICEFLAKE Fix the CLicky
This site can't provide a secure connection

forum.vc-mp.org uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

.

Quote from: [TkD]MarineForce123 on Jun 17, 2017, 04:25 AMhttps://forum.vc-mp.org/?action=pm;sa=send


ERROR           ICEFLAKE Fix the CLicky
This site can't provide a secure connection

forum.vc-mp.org uses an unsupported protocol.
ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Stop using XP and outdated browsers :P
.