SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 29/04/2015, 06:08 AM   #951
AzaMx
Huge Clucker
 
Join Date: Aug 2014
Location: Home.
Posts: 332
Reputation: 63
Default Re: Suggestions for Actor!

Quote:
Originally Posted by Abagail View Post
That is quite simply, retarded. NPC's can do half of these things, so why the fuck must we rely on actor's? Kalcor is trying to fix bugs, he doesn't have time to be adding more things that can already be done!

Just use NPC's; Kalcor mentioned he was adding a "simple actor system" meaning SIMPLISTIC, and not full of unnecessary functions that serve no special value.
You are not Kalcor but you are retarded. You don't know what Kalcor will do, he don't fix bugs all time right? So he must spend sometimes to do somethings else.
AzaMx is offline   Reply With Quote
Old 29/04/2015, 06:20 AM   #952
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,329
Reputation: 652
Default Re: Suggestions for Actor!

Quote:
Originally Posted by ipsLeon View Post
Civilians aren't actors, there's a huge difference between actors and npc's in GTA:SA... By the way would be good if Kalcor add GetPlayerTargetActor cause we can have them as targets in singleplayer, why not in multiplayer?
NPC'S are not a literal thing in GTA. Characters (and with that, the Player) and Actors are. Pedestrians are indeed actors, as I pointed out before. Have you ever explored the main.scm file? You can learn a lot from it.

Also in the main.scm you see that mission characters are also easily toyed with using actor functions. This is why I figured it'd be very simple to add better NPC natives (like I said above, it'd be a hell of a lot easier than our over complicated recordings and plugins).

I see how you can be mislead by the character vs actor thing though. I don't really know how to sum it up. Characters are actors internally, but are more controlled than the regular random ped actors. All of them can be controlled the same yes, but it's not that simple. Pedestrians are more umm, "thrown in" than mission characters. Players in SA-MP are handled more like characters, as well as NPC'S.

EDIT: About your GetPlayerTargetActor theory, you literally just pointed out what I've been saying. There are many actor features here that we do not have access to!
Crayder is offline   Reply With Quote
Old 29/04/2015, 06:40 AM   #953
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,047
Reputation: 784
Default Re: Suggestions for Actor!

Quote:
Originally Posted by Crayder View Post
NPC'S are not a literal thing in GTA. Characters (and with that, the Player) and Actors are. Pedestrians are indeed actors, as I pointed out before. Have you ever explored the main.scm file? You can learn a lot from it.

Also in the main.scm you see that mission characters are also easily toyed with using actor functions. This is why I figured it'd be very simple to add better NPC natives (like I said above, it'd be a hell of a lot easier than our over complicated recordings and plugins).
You know what I meant, and I don't really care about their name inside of a game script, you should look it as Kalcor is doing in sa-mp:

Quote:
RC6- Adds simple static actor system. There are cases where it requires too much effort to create a new NPC, and you don't want to use up an additional player slot. The 'actor' system has been added for these cases. See a_actor.inc for a list of functions.
n0minal is offline   Reply With Quote
Old 29/04/2015, 06:49 AM   #954
Crayder
Banned
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,329
Reputation: 652
Default Re: Suggestions for Actor!

Quote:
Originally Posted by ipsLeon View Post
You know what I meant, and I don't really care about their name inside of a game script, you should look it as Kalcor is doing in sa-mp:
Which is why I said this:
Quote:
This is why I figured it'd be very simple to add better NPC natives
I'm not saying actors SHOULD be upgraded, but they can be. NPC'S however should have all of the features that more advanced actor control would give. NPC'S biggest downfalls are the slots and system power. The system power problem is mostly caused by NPC plugins. NPC plugins all rely on NPC'S main feature, recording and playbacks. Actor controls would eliminate the need for recordings thus eliminating the problem with plugins. With more advanced NPC controls we could create better plugins a lot easier and they would be so much better.
Crayder is offline   Reply With Quote
Old 29/04/2015, 06:52 AM   #955
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,047
Reputation: 784
Default Re: Suggestions for Actor!

Quote:
Originally Posted by Crayder View Post
I'm not saying actors SHOULD be upgraded, but they can be.
Yes they can, and I think if Kalcor would do some huge upgrade on them it wouldn't be in end of some RC...
n0minal is offline   Reply With Quote
Old 29/04/2015, 07:12 AM   #956
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,772
Reputation: 854
Default Re: Suggestions for Actor!

We already have GetPlayerCameraTargetActor, so why would you ask for GetPlayerTargetActor.

Just for making GetPlayerTargetActor relevant to player's function:
pawn Code:
#if ! defined KEY_AIM
        #define KEY_AIM 128
#endif
stock GetPlayerTargetActor(playerid)
{
        if(! IsPlayerConnected(playerid)) return false;
 
        new target_actor = GetPlayerCameraTargetActor(playerid);
        if(target_actor != INVALID_ACTOR_ID)
    {
        new keys, updown, leftright;
        GetPlayerKeys(playerid, keys, updown, leftright);
 
        if(     GetPlayerWeapon(playerid) >= 22 &&
                        GetPlayerWeapon(playerid) <= 38 &&
                        keys & KEY_AIM)
        {
                        return target_actor;
        }
    }
        return INVALID_ACTOR_ID;
}

Only works when aiming with a weapon at an actor. And actors should be upgraded because they are way more better than NPCs.
__________________

Follow me on Github: Follow me on Spotify: Donate on Paypal:

Gammix is offline   Reply With Quote
Old 29/04/2015, 07:23 AM   #957
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,047
Reputation: 784
Default Re: Suggestions for Actor!

Quote:
Originally Posted by Gammix View Post
We already have GetPlayerCameraTargetActor, so why would you ask for GetPlayerTargetActor.

Just for making GetPlayerTargetActor relevant to player's function:
pawn Code:
#if ! defined KEY_AIM
        #define KEY_AIM 128
#endif
stock GetPlayerTargetActor(playerid)
{
        if(! IsPlayerConnected(playerid)) return false;
 
        new target_actor = GetPlayerCameraTargetActor(playerid);
        if(target_actor != INVALID_ACTOR_ID)
    {
        new keys, updown, leftright;
        GetPlayerKeys(playerid, keys, updown, leftright);
 
        if(     GetPlayerWeapon(playerid) >= 22 &&
                        GetPlayerWeapon(playerid) <= 38 &&
                        keys & KEY_AIM)
        {
                        return target_actor;
        }
    }
        return INVALID_ACTOR_ID;
}

Only works when aiming with a weapon at an actor. And actors should be upgraded because they are way more better than NPCs.
I'm asking cause some people really care about that green arrow above them and for the accuracy which they judge perfect...
n0minal is offline   Reply With Quote
Old 29/04/2015, 01:37 PM   #958
Infra
Big Clucker
 
Infra's Avatar
 
Join Date: Feb 2014
Location: Germany
Posts: 69
Reputation: 19
Default AW: Suggestions / Bug Fixes

pawn Code:
native SetPlayerRadioStation(playerid, stationid);
native TogglePlayerRadio(playerid, bool:toggle);

native SetWaveHeight(Float:height);
native SetPlayerWaveHeight(playerid, Float:height);

native SetGameSpeed(Float:speed);
native SetPlayerGameSpeed(playerid, Float:speed);
Infra is offline   Reply With Quote
Old 29/04/2015, 01:52 PM   #959
papedo
Big Clucker
 
papedo's Avatar
 
Join Date: Oct 2009
Location: Czech Republic
Posts: 162
Reputation: 6
Default Re: Suggestions / Bug Fixes

pawn Code:
native ActivateNOS(vehicleid, bool: toggle);
native IsNOSActivated(vehicleid, bool:activated);

public OnVehicleActivateNOS(vehicleid);

This would be cool last update for 0.3.7
papedo is offline   Reply With Quote
Old 29/04/2015, 02:16 PM   #960
J4Rr3x
Big Clucker
 
J4Rr3x's Avatar
 
Join Date: Jan 2014
Location: Palermo, Italy
Posts: 164
Reputation: 18
Default Re: Suggestions / Bug Fixes

Quote:
Originally Posted by papedo View Post
pawn Code:
native ActivateNOS(vehicleid, bool: toggle);
native IsNOSActivated(vehicleid, bool:activated);

public OnVehicleActivateNOS(vehicleid);

This would be cool last update for 0.3.7
You can do this with pawn functions.
J4Rr3x 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
fixes.inc Juvanii Bug Reports 0 25/06/2014 04:13 PM
High priority fixes/very desired suggestions Dr.Einstein Scripting Help 32 11/02/2014 09:23 AM
[Include] fixes.inc RebeloX Lançamentos/Releases 20 13/05/2012 06:17 AM
Post suggestions in the 0.3e suggestions topic Kalcor Scripting Help 0 06/03/2012 10:00 AM


All times are GMT. The time now is 04:46 PM.


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