Thread: [Plugin] Simple trail

Page 1 of 3 123 LastLast
Results 1 to 25 of 51
  1. #1
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    [Plugin] Simple trail

    Simple trail plugin for angelscript

    Cvars
    • hidechat 0/1 - Hide player chat when executing trail command
    • silence 0/1 - Silent plugin - only print to user instead of everybody
    • trailsize 1-255 - trail size
    • trailduration 0.1-25.5 - trail duration in seconds
    • trailalpha 1-255 trail alpha
    • trailsprite (spritename eg. voice, xbeam3) default sprite name

    (to change cvars either write this in console or write it in your server.cfg: as_command strail.hidechat 0/1 or as_command strail.silence 0/1 or any other cvar)

    Usage:
    • say trail off - turns trail off
    • say trail (color or colored sprite) <optional: sprite name> - turns trail on
    • say trail menu - show trail menu (select both sprite and/or color)



    Default color list:
    • red
    • orange
    • yellow
    • lime
    • green
    • turquoise
    • cyan
    • blue
    • purple
    • pink
    • white


    Default sprite list:
    • fatline
    • thinline
    • voice
    • smokey
    • lightning
    • interlace


    Adding custom colors:
    Open up /scripts/plugins/Zode/colors.txt and add your colors there.

    Adding custom sprites:
    Open up /scripts/plugins/Zode/trailsprites.txt and add your sprites there.
    you don't need to add custom sprites to the map's .res file, they should be automatically downloaded to the client.


    Installation:
    Remove any previous installation of SimpleTrail
    Download & extract SimpleTrail.zip to /Sven co-op/svencoop_addons/scripts/plugins/
    edit your default_plugins.txt and add (or modify if you have previous installation) this in:
    Code:
    "plugin"
    {
            "name" "SimpleTrail"
            "script" "Zode/SimpleTrail"
            "concommandns" "strail"
    }
    Type as_reloadplugins in your server console & change level to precache sprites.

    Enjoy!

    Download: -removed, see attachments-
    edit: fixed up plugin, it now works properly under linux

    heres 4 custom sprites because why not: -removed, see attachments-
    extract to svencoop_addons and add this to plugins/Zode/trailsprites.txt
    Code:
    sprites/zode/trails/squarewave.spr squarewave 0
    sprites/zode/trails/arrows.spr arrows 0
    sprites/zode/trails/point.spr point 0
    sprites/zode/trails/svenlogo.spr svenlogo 0
    customtrails1.rar
    SimpleTrail-16-12.zip
    Last edited by Zode; 16-12-2016 at 01:09 AM.

  2. #2
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    439

    Re: [Plugin] Simple trail

    Good job, those small and useful scripts also make good example scripts.

  3. #3
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    439

    Re: [Plugin] Simple trail

    Is it possible to set the trail commands on the fly?

    I.e. as admin in console: as_command strail.trailsize 1?

    Because that didn't made a difference
    Last edited by nico; 25-01-2016 at 05:37 PM.

  4. #4
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    Re: [Plugin] Simple trail

    you have to type that in the server console, not client (or use rcon)
    edit: updated plugin, please redownload if you have it installed
    Last edited by Zode; 25-01-2016 at 07:13 PM.

  5. #5
    Registered User recon224's Avatar
    Join Date
    Jan 2016
    Location
    Illinois, United States
    Posts
    70

    Re: [Plugin] Simple trail

    Works great, thanks!

    EDIT:

    This happened only once but I figured I'd bring it to your attention. Otherwise, plugin is still functioning great.
    Click image for larger version. 

Name:	2016-01-25_00001.jpg 
Views:	123 
Size:	227.2 KB 
ID:	16718
    Last edited by recon224; 25-01-2016 at 08:19 PM.

  6. #6
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    439

    Re: [Plugin] Simple trail

    Quote Originally Posted by Zodemon View Post
    you have to type that in the server console, not client (or use rcon)
    edit: updated plugin, please redownload if you have it installed
    Duh, thanks. Works well btw.

  7. #7
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    Re: [Plugin] Simple trail

    no problem

  8. #8
    Registered User
    Join Date
    Jan 2016
    Posts
    2

    Re: [Plugin] Simple trail

    Is there any way to toggle trails through console commands, without getting any kind of feedback whatsoever? I want to make an alias script that changes the color of trails every second. Not too experienced with programming, but if the concept for adding this functionality in isn't too difficult, I can give it a shot. Would also like to know if this can be done for glowing colors, but I figure it'd be redundant to post this in both threads.

  9. #9
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    Re: [Plugin] Simple trail

    not at the moment, im going to add animations to trails too (see: glowplugin thread)

  10. #10
    Registered User Dynamite's Avatar
    Join Date
    Nov 2004
    Location
    Europe
    Posts
    2,826

    Re: [Plugin] Simple trail

    Cool script!

  11. #11
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    439

    Re: [Plugin] Simple trail

    Setting trail size/duration/alpha in server.cfg does not seem to work (always). Either it is a problem in the script or a problem of sc, like server.cfg being parsed before the script is loaded. I often find the default settings applied even though I have other settings in server.cfg.

  12. #12
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    Re: [Plugin] Simple trail

    hmm ill look into that in few days

  13. #13
    Been playing since 2000, Joined the threads late, Still killin and having fun even. Better late than never. Darkassassin198's Avatar
    Join Date
    Nov 2010
    Location
    In a HEV suit
    Posts
    311

    Re: [Plugin] Simple trail

    Question, I clicked download and it takes me to a page full of text, is that how the download is meant to be done that I have to copy and paste it into a notepad or something else?

    It's my first time attempting this so I just wanna make sure.

    Also..I never really messed with angel script a ton how would I go about knowing I correctly placed this in the .txt
    Last edited by Darkassassin198; 28-01-2016 at 01:47 AM.
    Did you know...if you touch a wall you run faster?

    now try it with crates.


  14. #14
    Registered User recon224's Avatar
    Join Date
    Jan 2016
    Location
    Illinois, United States
    Posts
    70

    Re: [Plugin] Simple trail

    Quote Originally Posted by Darkassassin198 View Post
    Question, I clicked download and it takes me to a page full of text, is that how the download is meant to be done that I have to copy and paste it into a notepad or something else?

    It's my first time attempting this so I just wanna make sure.

    Also..I never really messed with angel script a ton how would I go about knowing I correctly placed this in the .txt
    Right click "Save As"

  15. #15
    Been playing since 2000, Joined the threads late, Still killin and having fun even. Better late than never. Darkassassin198's Avatar
    Join Date
    Nov 2010
    Location
    In a HEV suit
    Posts
    311

    Re: [Plugin] Simple trail

    Quote Originally Posted by recon224 View Post
    Right click "Save As"
    I did do that but the problem is I do not know how it should look like in the default_plugins.txt, I did try it yesterday and it didn't work at all, I feel like I messed something up but I have no clue what, either I messed up by not adding a space or something so it may not be working at all.
    Did you know...if you touch a wall you run faster?

    now try it with crates.


  16. #16
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    439

    Re: [Plugin] Simple trail

    Oh Zodemon this is a very minor issue but could you replace "You now have" with "You now have a" and "now has" with "now has a" :P Thanks lol
    Last edited by nico; 29-01-2016 at 03:10 AM.

  17. #17
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    Re: [Plugin] Simple trail

    nico that doesnt really tell me whats wrong, could you give me the details?

  18. #18
    incognico nico's Avatar
    Join Date
    Aug 2015
    Posts
    439

    Re: [Plugin] Simple trail

    Quote Originally Posted by Zodemon View Post
    nico that doesnt really tell me whats wrong, could you give me the details?
    The grammar in the say parts

  19. #19
    Been playing since 2000, Joined the threads late, Still killin and having fun even. Better late than never. Darkassassin198's Avatar
    Join Date
    Nov 2010
    Location
    In a HEV suit
    Posts
    311

    Re: [Plugin] Simple trail

    I find it a little confusing to install this, I think I may have messed up on the default_plugins.txt and the trails are not working at all, is there a specific way to place it like at the top or maybe the bottom? I have done as_restartplugins but nothing works.

    Can anyone help me out?
    Did you know...if you touch a wall you run faster?

    now try it with crates.


  20. #20
    Banned Solokiller's Avatar
    Join Date
    Sep 2004
    Location
    Belgium
    Posts
    3,314

    Re: [Plugin] Simple trail

    there is no as_restartplugins command. If you were already running the server, reload all plugins using as_reloadplugins.

  21. #21
    Been playing since 2000, Joined the threads late, Still killin and having fun even. Better late than never. Darkassassin198's Avatar
    Join Date
    Nov 2010
    Location
    In a HEV suit
    Posts
    311

    Re: [Plugin] Simple trail

    I did but they still didn't work, I'm just worried that I messed something up when adding the trails to the default_plugins.txt
    Did you know...if you touch a wall you run faster?

    now try it with crates.


  22. #22
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    Re: [Plugin] Simple trail

    Quote Originally Posted by nico View Post
    The grammar in the say parts
    ah lol, when i see that you edited your original message, when i saw it it was slightly confusing to read.
    next patch will have that fixed :P

  23. #23
    Registered User recon224's Avatar
    Join Date
    Jan 2016
    Location
    Illinois, United States
    Posts
    70

    Re: [Plugin] Simple trail

    Did your plugins break with the recent update? They seemed to have stopped working for me..

  24. #24
    Game tester  
    Programmer
    Join Date
    Oct 2009
    Location
    Finland
    Posts
    195

    Re: [Plugin] Simple trail

    quick patch:
    > fixed grammar
    > updated code to fix changes in angelscript
    Last edited by Zode; 30-01-2016 at 05:05 AM.

  25. #25
    Registered User recon224's Avatar
    Join Date
    Jan 2016
    Location
    Illinois, United States
    Posts
    70

    Re: [Plugin] Simple trail

    Quote Originally Posted by Zodemon View Post
    quick patch:
    > fixed grammar
    > updated code to fix changes in angelscript
    > trails now carry over maps!
    You da man!

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •