Vice City: Multiplayer

Server Development => Scripting and Server Management => Snippet Showroom => Topic started by: kennedyarz on Jun 13, 2017, 01:14 AM

Title: [SNIPPED] Zombie Jack NPC
Post by: kennedyarz on Jun 13, 2017, 01:14 AM
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FNuZEgsa.png&hash=1b2b9ce85e9177d2a43c516dc8dd6c6562d6eca7)

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

(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Ffiles.thijn.ovh%2Fimg%2F04bf67580d7709369f124745e6a18a70%2FNPC.rar&hash=1240c8dcd631641d3f1adb71557a79e3dc8db976) (http://files.thijn.ovh/download/04bf67580d7709369f124745e6a18a70/NPC.rar)

Happy death :\/



Title: Re: [SNIPPED] Zombie Jack NPC
Post by: luchgox on Jun 13, 2017, 04:05 AM
Virus detected 1/56

Anyway,Good Work
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: MEGAMIND on Jun 13, 2017, 04:51 AM
Quote from: kennedyarz on Jun 13, 2017, 01:14 AM
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FNuZEgsa.png&hash=1b2b9ce85e9177d2a43c516dc8dd6c6562d6eca7)

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
(https://forum.vc-mp.org/proxy.php?request=http%3A%2F%2Ffiles.thijn.ovh%2Fimg%2F46f88d0552b053502a1d3a49373e7d83%2FNPC.rar&hash=4361dcdb9c5f8b93e85167180f5dfdaf3e5a6dbb) (http://files.thijn.ovh/download/46f88d0552b053502a1d3a49373e7d83/NPC.rar)

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
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: EK.IceFlake on Jun 13, 2017, 06:02 AM
This is a very good example of why you should not include executables in your script files (https://forum.vc-mp.org/?topic=898.0).
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: vito1 on Jun 13, 2017, 06:23 AM
kennedyarz is infected, anyone go kill him fast before his turning into a zombie
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: MatheuS on Jun 13, 2017, 08:31 AM
Quote from: vito1 on Jun 13, 2017, 06:23 AMkennedyarz is infected, anyone go kill him fast before his turning into a zombie

hahhahahhaha.
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: kennedyarz on Jun 13, 2017, 12:22 PM
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 (https://forum.vc-mp.org/?topic=898.0).

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
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: Anik on Jun 13, 2017, 12:44 PM
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;
}
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: kennedyarz on Jun 13, 2017, 01:00 PM
Quote from: Anik on Jun 13, 2017, 12:44 PMUse switch case instead of tons of if statements.

Thx for suggestion Updated
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: SAzEe21 on Jun 13, 2017, 02:59 PM
Nice work. keep it up.
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: [TkD]MarineForce123 on Jun 16, 2017, 06:35 AM
https://www.file-upload.com/3uhuil4bbbo0
 

See this server not Work https://www.file-upload.com/3uhuil4bbbo0
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: [TkD]MarineForce123 on Jun 16, 2017, 08:23 AM
PUNK NOODLE GIVE ME FULL SETUP OF ZOMBIE JACK SERVER.CFG SERVER.CONF SCRIPTS SERVER.EXE  STORE MAIN NUT
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: EK.IceFlake on Jun 16, 2017, 09:13 AM
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 (https://forum.vc-mp.org/?action=pm;sa=send).
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: [TkD]MarineForce123 on Jun 17, 2017, 04:25 AM
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
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: . on Jun 17, 2017, 04:36 AM
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
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: KAKAN on Jun 17, 2017, 08:05 AM
Quote from: . on Jun 17, 2017, 04:36 AM
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
and using file-upload.com as well.
Title: Re: [SNIPPED] Zombie Jack NPC
Post by: Mahmoud Tornado on Sep 15, 2017, 04:42 PM
Good Work @kennedyarz :D I Tested it :D Really good work :D