Make things hurt players?

Discussion in 'Mapping Questions & Discussion' started by Algebraic, Jul 28, 2010.

  1. Algebraic

    Algebraic L1: Registered

    Messages:
    34
    Positive Ratings:
    2
    Alright i have a question. How would i go about making it so a env_laser would randomly pick players and deal damage to them? Or how to make a point_tesla deal damage to players that it would strike randomly? So i guess my main question is how to make entities deal damage to players, and how to make it so the players are chosen randomly or for another reason.
    Thanks in advance, i'm new to mapping and trying to figure everything out.
     
  2. Penguin

    aa Penguin Clinically Diagnosed with Small Mapper's Syndrome

    Messages:
    1,993
    Positive Ratings:
    1,237
    env_beam.

    There are several "random strike" parameters dor that entity.
     
    • Thanks Thanks x 1
  3. Algebraic

    Algebraic L1: Registered

    Messages:
    34
    Positive Ratings:
    2
    Thanks, that solves the laser problem. But i also want to know how to make any entity for example, point_tesla to deal damage to players. Is there an output or something that references a player?

    Also, why i am here, anyone know a way i would go about making a sort of health bar for a brush? I assume it would have something to do with a func_breakable, and maybe some math counters, but what i want to do is make it so i have a brush (brush A), that when you shoot it another brush gets smaller (brush B), making a sort of health bar feature for that brush (brush A).