Raised This Month: $51 Target: $400
 12% 

[DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Plugin ID:
3944
Plugin Version:
0.2.0a-20131024
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Do some stuff on certain event.
    Old 10-24-2013 , 05:00   [DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)
    Reply With Quote #1

    What is it?
    OH MY GOSH ANOTHER LEONARDO'S SHIT-O-PLUGIN
    Run commands and/or functions on hooked event (using config file).
    How to install?
    Step 1: Download fils from below
    Step 2: Place eventactions.smx in ./sourcemod/plugins/
    Step 3*: Place eventactions.sp in ./sourcemod/scripting/
    Step 4*: Place eventactions.cfg in ./sourcemod/data/
    Step 5: Success! Now you're awesome!
    Known issues:
    * Unknown.
    Supported actions:
    * Execute single server-side command.
    ToDo list:
    * More stuff to execute!
    Console variables:
    PHP Code:
    // Plugin version
    sm_event_action_version
    // Enable/disable entire plugin
    sm_ea_enabled 1
    // Enable/disable logging
    sm_ea_logs 1
    // Enable/disable debug messages
    sm_ea_debug 1 
    Admin commands:
    PHP Code:
    // Reload config file
    sm_ea_reload 
    Changelogs:
    Code:
    24.10.2013:
      Version 0.1.0a:
        Plugin published.
      Version 0.2.0a:
        Renamed some convars (replaced _event_actions_ with _ea_);
        Added cl_cmd (see example config for details).
    __________________
    * - optional steps
    Attached Files
    File Type: sp Get Plugin or Get Source (eventactions.sp - 978 views - 8.8 KB)
    File Type: cfg eventactions.cfg (990 Bytes, 436 views)
    __________________

    Last edited by Leonardo; 10-24-2013 at 09:52.
    Leonardo is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 10-24-2013 , 05:02   Re: [DEV] Event Actions v.0.1.0 (24 Oct 2013)
    Reply With Quote #2

    ~Reserved

    Tell me if it's a good idea, and I'll keep my work on it.

    How to configure:
    Code:
    "event_actions_v1"
    {
    	"player_activate" // event name
    	{
    		"Pre" // or Post, or PostNoCopy
    		{
    			"key"		"value"
    		}
    	}
    }
    Possible keys/fields:
    Code:
    * hook
        1 - enable this event hook (default)
        0 - disable this event hook
    * hide
        0 - force broadcast
        1 - don't broadcast
        2 - prevent event
       -1 - don't change (default)
    * sv_cmd
        Execute server-side command (empty by default)
    * cl_cmd
        Execute client-side command (empty by default)
    * cl_cmdtype
        0 - FakeClientCommand (default)
        1 - FakeClientCommandEx
        2 - ClientCommand
    * cl_field
        Event field to get client index or userid
    * cl_fieldtype
        0 - client index (use as client index)
        1 - userid (get and use client index)
        2 - client index (get and use userid)
       -1 - disabled (default)

    Last edited by Leonardo; 12-15-2013 at 09:14.
    Leonardo is offline
    micazoid
    Veteran Member
    Join Date: Oct 2010
    Location: Munich - Germany
    Old 10-24-2013 , 06:20   Re: [DEV] Event Actions v.0.1.0 (24 Oct 2013)
    Reply With Quote #3

    Is this able to replace this one?

    Nice Idea, but your configfile leads me nowhere:
    Code:
    "event_actions_v1"
    {
    	"player_activate"
    	{
    		"Post"
    		{
    			"hook"		"0"
    			"hide"		"-1"
    			"sv_cmd"	"say hi"
    		}
    	}
    }
    What is "hide", what is "hook", what is "Post"? Please explain this for others =)

    Also a List of avaiable Events in yourfirst Post would be very handy for someone who does not know about this
    __________________

    Last edited by micazoid; 10-24-2013 at 06:21.
    micazoid is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 10-24-2013 , 06:31   Re: [DEV] Event Actions v.0.1.0 (24 Oct 2013)
    Reply With Quote #4

    Thank you for your reply!

    First of all, I said in second post that I'll explain it a bit later.
    Second of all, it supports any possible and non-exist events (multi-game support).

    I'll tell more when I'll come back home.

    EDIT:
    this idea came to me when I realized that it'll be awesome if some commands will run automatically when hallowen boss is spawned/defeated.
    __________________

    Last edited by Leonardo; 10-24-2013 at 10:08.
    Leonardo is offline
    ys24ys
    Junior Member
    Join Date: Nov 2013
    Old 12-15-2013 , 02:11   Re: [DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)
    Reply With Quote #5

    Thx this plugin make Leonardo.
    I love this plugin. It is interesting.

    I ask two.

    one.
    how to use this plugin? i'm play the NMRiH.
    i want use 'player_spawn' event.
    but, I don't know eventaction.cfg writing.

    Quote:
    "player_activate"
    {
      "Pre"
      { 
      "hook" "1"
      "hide" "1"
      "cl_field" "userid"
      "cl_fieldtype" "2"
      "player_spawn"
      }
    }
    i need help.


    two.
    how to use plugins? its not 'call command'? (ex : sm_eventaction - show command window)

    Last edited by ys24ys; 12-15-2013 at 02:24.
    ys24ys is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 12-15-2013 , 09:13   Re: [DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)
    Reply With Quote #6

    >I love this plugin.
    >how to use this plugin?
    I see.

    Code:
    "event_actions_v1"
    {
    	"player_spawn" // event name
    	{
    		"Post"
    		{
    			"cl_cmd"		"sm_eventaction"
    			"cl_field"		"userid"
    			"cl_fieldtype"		"1"
    		}
    	}
    }
    __________________

    Last edited by Leonardo; 12-15-2013 at 09:14.
    Leonardo is offline
    ys24ys
    Junior Member
    Join Date: Nov 2013
    Old 12-16-2013 , 05:45   Re: [DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)
    Reply With Quote #7

    Quote:
    Originally Posted by Leonardo View Post
    >I love this plugin.
    >how to use this plugin?
    I see.

    Code:
    "event_actions_v1"
    {
        "player_spawn" // event name
        {
            "Post"
            {
                "cl_cmd"        "sm_eventaction"
                "cl_field"        "userid"
                "cl_fieldtype"        "1"
            }
        }
    }
    Thanks. but NMRiH is not found 'userid'. (maybe, Set can not be used by game developers stop.)
    ys24ys is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 12-16-2013 , 16:39   Re: [DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)
    Reply With Quote #8

    I'm a bit didn't get it.

    player_spawn - generic event, and it uses 'userid'.

    Last edited by Leonardo; 12-16-2013 at 16:39.
    Leonardo is offline
    ys24ys
    Junior Member
    Join Date: Nov 2013
    Old 12-21-2013 , 08:56   Re: [DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)
    Reply With Quote #9

    hello Leonardo.
    How are you?

    I'm waiting for the next update.
    About this plugin you would like to convey my ideas.
    My English is not good, please have an awesome understanding.

    1.
    Perhaps, this plugin is 'unconditional' run, I suppose.
    I want [event name] is 'unconditional execution' rather than a calling hope to be able to be used to.
    ex:
    Quote:
    "event_actions_v1"
    {
     "player_spawn" // Always run
     {
      "Post"
      {  
       "cl_cmd" "sm_eventaction"
       "cl_field" "userid"
       "cl_fieldtype" "1"
      }
     }
     
     "player_give_item" // Only run when called
     
     {
      "Post"
      {
       "cl_cmd" "command"
      }
     }
    }
    This is. What do you think?

    2.
    I [flag r] to the user that owns, would like to give preference to.
    For example, 'spawn HP setting, spawn getting weapons, fire fist, spawn SPEED setting etc.'
    (Condition occurs : player_spawn, flag r)

    Quote:
    // For example Programming Languages C
    if(player_spawn)
    {
     if(flag r)
     {
      player_speed 1.5(this is x1.5)
     }
    }
    But I still do not know how to use this plugin.
    I want. cfg files that are added to a variety of examples.

    Last edited by ys24ys; 12-21-2013 at 23:53.
    ys24ys is offline
    yomox9
    Member
    Join Date: Jan 2014
    Location: jp
    Old 05-29-2014 , 05:40   Re: [DEV] Event Actions v.0.2.0 Alpha (24 Oct 2013)
    Reply With Quote #10

    It's interesting.But i could not understood.
    Pleae give me more example.
    yomox9 is offline
    Reply



    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

    Forum Jump


    All times are GMT -4. The time now is 14:38.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode