View Single Post
Author Message
Pavelas
Junior Member
Join Date: Oct 2016
Old 12-07-2020 , 23:21   [CS:GO] How to work with Entities?
Reply With Quote #1

Hello AlliedModders,

I just started to work with entities and I am feeling a bit lost, maybe you will be able to help me. At the moment I am working with entities on the map (prop_dynamic), I have the following code.

PHP Code:
void GetEntity()
{
    
int target GetClientAimTarget(clientfalse);

    if (
target == -1) {
        return;
    }

    
// Trying to work with entities

I have the following questions:
  1. Is Entity's Index static?
    In other words, how to identify entities if they have the same Class Name but do not have m_iName? Can I use just index and store it in the database?
  2. How to find Entity's Properties?
    For example, I found that I can use property m_bShouldGlow, it makes the entity glowing, where I can find all those properties and possible values?
  3. How to change Glow Color?
    As I mentioned before, I managed to make entity glow, is it possible to change the color of glow?
  4. How to make Client -> Entity relationship?
    For example, is it possible to apply effects (glow and others) only for some clients, not for everyone?
Thank you in advance for any replies, if you know any plugins or resources where I can learn more about entities, please let me know.

Last edited by Pavelas; 12-07-2020 at 23:24.
Pavelas is offline