SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 12/07/2016, 05:42 PM   #11
ZiGGi
Banned
 
Join Date: Sep 2008
Location: Russia
Posts: 1,677
Reputation: 356
Default Re: FCNPC Boss like World of Warcraft

Good job!
ZiGGi is offline   Reply With Quote
Old 14/07/2016, 08:58 AM   #12
JeaSon
Gangsta
 
JeaSon's Avatar
 
Join Date: Aug 2013
Location: Future
Posts: 560
Reputation: 79
Default Re: FCNPC Boss like World of Warcraft

Amazing
__________________
Again back
JeaSon is offline   Reply With Quote
Old 18/07/2016, 01:12 AM   #13
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 503
Reputation: 363
Default Re: FCNPC Boss like World of Warcraft


Leatherface/Jason Voorhees/Michael Myers


I have added a second example script which shows that you don't have to use every feature that is provided (such as: casting spells, showing the healthbar, ...) to add a nice boss-like script to your server.
It is a bit of a mix of The Texas Chain Saw Massacre, Friday the 13th and Halloween.

Video:
The script can be seen in action here.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work

Last edited by Freaksken; 17/03/2018 at 07:22 AM.
Freaksken is offline   Reply With Quote
Old 18/07/2016, 05:12 AM   #14
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,368
Reputation: 652
Default Re: FCNPC Boss like World of Warcraft

This is pretty badass, I love the work you put into it.

The function names could be more generalised. Less World of Warcraft. Less "Boss", more (a word for special, controllable player... but not "NPC", maybe "Bot"). Less "Spell", more "Ability". That's just how I would've did it.

That would help people understand what this include can do besides your WOW example. It is capable of much more than WOW.
Crayder is offline   Reply With Quote
Old 18/07/2016, 03:28 PM   #15
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 503
Reputation: 363
Default Re: FCNPC Boss like World of Warcraft

Quote:
Originally Posted by Crayder View Post
This is pretty badass, I love the work you put into it.

The function names could be more generalised. Less World of Warcraft. Less "Boss", more (a word for special, controllable player... but not "NPC", maybe "Bot"). Less "Spell", more "Ability". That's just how I would've did it.

That would help people understand what this include can do besides your WOW example. It is capable of much more than WOW.
I have to agree with you there.
Unfortunately the naming part could've been done better. "World of Warcraft", "Boss" and "Spell" might be a bit off putting for some, even though you can do a lot more things with this include than what the title might encompass. The reason I first thought of WOW and Boss-like mechanics, is because, well that's where I got the idea from to make this include.

I decided to create this second example to show that indeed you can do a lot if you want to, but you don't have to utilize every function (getter/setter). In fact, you can create a "Boss" with just one line and let the inlcude handle everything else:
Code:
new npc = WOW_CreateBoss("BigSmoke");
I am working on a zombie-like script in which sometimes a special infected spawns (see L4D2). Could you do this by writing everything yourself? Yes, but using this include would reduce the code you would write to just a few lines.

I agree that the naming should be changed. Although I can't really come up with anything that would encompass everything this include is capable of, without generalizing too much. This include adds functionality to FCNPC, just using "Special NPC" is in my opinion a bit too vague, because that could mean anything.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 18/07/2016, 04:01 PM   #16
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,368
Reputation: 652
Default Re: FCNPC Boss like World of Warcraft

Quote:
This include adds functionality to FCNPC, just using "Special NPC" is in my opinion a bit too vague, because that could mean anything.
Yeah, I definitely see your point, I couldn't think of much either. I'm still going to try to think of names in the meantime.
Crayder is offline   Reply With Quote
Old 22/07/2016, 05:15 PM   #17
Stones
Huge Clucker
 
Stones's Avatar
 
Join Date: Jun 2013
Location: United Kingdom
Posts: 213
Reputation: 56
Default Re: FCNPC Boss like World of Warcraft

This is pretty awesome lol, I'm going to use this and variations of it on my server.

Great job + rep.
__________________
Stones is offline   Reply With Quote
Old 23/07/2016, 09:21 PM   #18
SetPlayerNameTag
Big Clucker
 
SetPlayerNameTag's Avatar
 
Join Date: Jan 2015
Location: Killerchina
Posts: 169
Reputation: 3
Default Re: FCNPC Boss like World of Warcraft

THIS IS FUCKING AWESOME!

EDIT: I hope the aggro feature comes true!
SetPlayerNameTag is offline   Reply With Quote
Old 29/07/2016, 08:11 PM   #19
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 503
Reputation: 363
Default Re: FCNPC Boss like World of Warcraft

FCNPC Boss 1.0.1

Just some changes to be conform with FCNPC 1.1.0.

Changes:
  • Added check to see if MapAndreas was already initialized and don't initialize again when it is
  • Added default values for the WOW_SetBoss...Info methods
  • Added extra checks to prevent unnecessary FCNPC_GoToPlayer/FCNPC_AimAtPlayer/FCNP_MeleeAttack calls
  • Added some extra checks FCNPC_IsSpawned checks
  • Changed default speed to be eqaul to -1.0 (see FCNPC 1.1.0)
  • Changed default ranged attack delay to be eqaul to -1 (see FCNPC 1.1.0)
  • Fixed WOW_SpellToString spell name default color

Download: Download link.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work

Last edited by Freaksken; 17/04/2017 at 10:02 PM.
Freaksken is offline   Reply With Quote
Old 05/08/2016, 02:22 AM   #20
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 503
Reputation: 363
Default Re: FCNPC Boss like World of Warcraft

FCNPC Boss 1.0.2

Changes:
  • Changed default move speed to MOVE_SPEED_AUTO to be conform with FCNPC 1.1.1.
  • Added individual useMapAndreas setting.
  • WOW_USE_MAP_ANDREAS is now a global value that determines if MapAndreas is used by any boss.
  • Refer to these wiki pages for more info: click and click.
  • Updated example scripts to handle the changes.
  • Updated credits.
  • Removed colandreas upcoming feature, since it will be implemented in FCNPC 2.0.

Download: Download link.
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work

Last edited by Freaksken; 17/04/2017 at 10:02 PM.
Freaksken is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FCNPC GOD mod bug HELP :( peti784 Scripting Help 0 07/09/2016 04:57 PM
Need help with FCNPC valerastar Scripting Help 1 05/05/2016 07:54 AM
Help Me FCNPC Pagle Scripting Help 0 30/07/2015 06:11 AM
FCNPC help blackwave Scripting Help 1 20/04/2014 03:36 AM


All times are GMT. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.