Welcome to PlagueFest.com! Log in or Sign up to interact with the Plague Fest community.
  1. Welcome Guest! to interact with the community and gain access to all the site's features.

Help : env_screenoverlay and particle_editor

Discussion in Mapping Discussion started by Captain Jack, Jul 21, 2013

  1. Apr 25, 2013
    Posts
    Good evening,

    Once again, I need your help for some stuff :

    1) I have made a screen effect with the entity "env_screenoverlay", but i want to apply this effect to only 1 player. Is it possible ?

    2) I have create a particle in the particle editor, i have save the particle in "C:\Program Files\Steam\SteamApps\common\Counter-Strike Source\cstrike\particles" and I have extract the manifest file and add the line : ""file" "particles/gandalf_fx.pcf" (my particle file is gandalf_fx.pcf). I create an info_particle_system entity with the name of my particle (gandalf_shield). But when i go ingame, the particle doesnt show, even with a trigger or a button to activate it. I have the message : "Attempting to create unknown particle system 'gandalf_shield' :<

    Thanks for help
  2. Oct 4, 2012
    Posts
    1) As far as I know, overlays are global only.
    2) Try putting both files into \cstrike\custom\my_custom_stuff\particles.
  3. May 31, 2012
    Posts
    No, they aren't.

    For player-only overlays you don't need env_screenoverlays, but a point_clientcommand instead. This entity can only execute commands/cvars with the flag SERVER_CAN_EXECUTE (type findflags SERVER_CAN_EXECUTE in console to check which ones are they, it's a small list but it allows per player sounds without entities, sound muting and screenoverlays). To set up an overlay to one player, for instance in a trigger, just do OnStartTouch -> ClientCMD -> Command -> r_screenoverlay effects/CombineShield/comshieldwall3 (this is a sample one, any other can be used).

    Attached Files:

    • Informative Informative x 1
    • Sep 25, 2010
      Posts
      Isn't r_screenoverlay classified as a cheat command?
    • May 31, 2012
      Posts
      I tested with syo on his test server and it worked just fine, but it might be since he has the obnoxious need to turn sv_cheats on even if we have sourcemod running for a reason. We mostly tested the sound commands. It could still be easy to bypass, considering sm_rcon is there and all. (And probably maybe there's a sourcemod command that takes advantage of this)
    • Sep 25, 2010
      Posts
      Hmm, you sure sv_cheats wasn't set to 1? I just logged on minigames and tried using r_screenoverlay. Said that sv_cheats 1 is required.
    • May 31, 2012
      Posts
      Syoudous just tested it with sv_cheats off on his server. Try it within the map, I think maps override the need for cheats.

      EDIT: Checked myself, it works.
      • Winner Winner x 1
        enviolinador, Jul 26, 2013 Last edited by enviolinador, Jul 26, 2013
      • Sep 25, 2010
        Posts
        Sweet! Good to know.
      • Oct 4, 2012
        Posts
        Inb4 r_drawothermodels 2 via map without cheats.
      • May 31, 2012
        Posts
        Only those can be executed:

        ] findflags server_can_execute
        "cl_soundscape_flush"
        client cheat server_can_execute
        - Flushes the client side soundscapes
        "playgamesound"
        client server_can_execute clientcmd_can_execute
        - Play a sound from the game sounds txt file
        "r_screenoverlay"
        client cheat server_can_execute
        - Draw specified material as an overlay
        "slot1"
        client server_can_execute
        "slot2"
        client server_can_execute
        "slot3"
        client server_can_execute
        "slot4"
        client server_can_execute
        "slot5"
        client server_can_execute
        "slot6"
        client server_can_execute
        "slot7"
        client server_can_execute
        "slot8"
        client server_can_execute
        "slot9"
        client server_can_execute
        "slot0"
        client server_can_execute
        "slot10"
        client server_can_execute
        "cancelselect"
        client server_can_execute
        "invnext"
        client server_can_execute
        "invprev"
        client server_can_execute
        "lastinv"
        client server_can_execute
        "cl_spec_mode" = "6" ( def. "1" )
        client archive server_can_execute
        - spectator mode
        "play"
        server_can_execute
        - Play a sound.
        "sndplaydelay"
        server_can_execute
        - Usage: sndplaydelay delay_in_sec (negative to skip ahead) soundname
        "dsp_player" = "0"
        server_can_execute
        "name" = "Enviolinador" ( def. "unnamed" )
        archive server_can_execute
        - Current user name
        "retry"
        server_can_execute clientcmd_can_execute
        - Retry connection to last server.
        "r_cleardecals"
        server_can_execute clientcmd_can_execute
        - Usage r_cleardecals <permanent>.
        "echo"
        server_can_execute
        - Echo text to console.
        "soundfade"
        server_can_execute
        - Fade client volume.
        • Informative Informative x 1
        • May 25, 2012
          Posts
          Yes, It works fine.

          Assuming you have it all set up correctly, with map_name_particles.txt in place. It might the same sort of issue I had with CS:S. I worked around by bringing up the particle editor in-game, 'changing' the particle (as long as it's updated, it will work. changing max_particles quick will do.) and restarting the round. It will work fine though once you pack it in the map. You may want to try just that as a quick test to see if it helps you any.
        • Apr 25, 2013
          Posts
          Thank guys, i'll test the "r_screenoverlay" command tonight :smile: Also, my particles works now, I have just copy my custom particle and past it in a file that already exist and it works :smile:

          EDIT : r_screenoverlay works fine.
          Captain Jack, Jul 27, 2013 Last edited by Captain Jack, Aug 4, 2013