AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D & L4D2] Rock Glow (https://forums.alliedmods.net/showthread.php?t=319358)

Aya Supay 10-26-2019 23:18

[L4D & L4D2] Rock Glow
 
2 Attachment(s)
MY VIDEO Click

Dragokas 10-29-2019 10:57

Re: [L4D & L4D2] Rock Glow
 
AFAIK, L4D2 doesn't have this entity: prop_glowing_object

See my death soul plugin for samples.

Aya Supay 10-29-2019 13:17

Re: [L4D & L4D2] Rock Glow
 
Quote:

Originally Posted by Dragokas (Post 2671322)
AFAIK, L4D2 doesn't have this entity: prop_glowing_object

See my death soul plugin for samples.

thanks for the report if i knew it didn't exist i was thinking about another plugin i'm working on lol

update :twisted: :shock:

HarryPotter 12-06-2019 07:47

Re: [L4D & L4D2] Rock Glow
 
do you forget to get "m_vecOrigin" of entity on function "OnNextFrame(int entity)"?
because Pos[3] variable is always nothing when try to TeleportEntity(GlowRock, Pos, NULL_VECTOR, NULL_VECTOR);

I modify these code
PHP Code:

public void OnNextFrame(int entity)
{
    
float vPos[3];
    
float vAng[3];
        
    
GetEntPropVector(entityProp_Data"m_vecOrigin"vPos);
    
GetEntPropVector(entityProp_Send"m_angRotation"vAng);
    
    ...

    
TeleportEntity(GlowRockvPosvAngNULL_VECTOR);



Silvers 12-12-2019 21:22

Re: [L4D & L4D2] Rock Glow
 
Quote:

Originally Posted by fbef0102 (Post 2675889)
do you forget to get "m_vecOrigin" of entity

No because it's parented, teleporting to 0,0,0 position relative to it's parent entity. Maybe required but might be an oversight.

HarryPotter 12-15-2019 19:10

Re: [L4D & L4D2] Rock Glow
 
Quote:

Originally Posted by Silvers (Post 2676771)
No because it's parented, teleporting to 0,0,0 position relative to it's parent entity. Maybe required but might be an oversight.

have a look in l4d1 (original plugin before I modify)
https://i.imgur.com/Ye7U7MU.jpg

Aya Supay 12-15-2019 20:04

Re: [L4D & L4D2] Rock Glow
 
Quote:

Originally Posted by fbef0102 (Post 2677071)
have a look in l4d1 (original plugin before I modify)
https://i.imgur.com/Ye7U7MU.jpg

I already had it updated when dragokas told me about the error of l4d2 I just didn't upload it so I left it with a tracer

and update :wink:

AshesBeneath 01-07-2020 10:39

Re: [L4D & L4D2] Rock Glow
 
Hello, thanks for the plugin works like a charm, but is it possible to make the glow can be seen by only infected and spectators? I found GlowForTeam ent input for l4d1 but it appears not to be supported in l4d2, is there any other way if possible?

Marttt 01-07-2020 11:37

Re: [L4D & L4D2] Rock Glow
 
@AshesBeneath

You could use SetTransmit so you can filter for which teams the glow should appear.
Maybe someone else has a better tip.

-----------------------------------------------------------------------------------------------------

Also, the plugin won't work for "trunk" throw (that happens in Sacrifice map for example)
would be better to get the model from the tank_rock class than hardcoding it.

E.g.
PHP Code:

char sModelName[128];
GetEntPropString(entityProp_Data"m_ModelName"sModelNamesizeof(sModelName));

DispatchKeyValue(GlowRock"model"sModelName); 


AshesBeneath 01-07-2020 12:56

Re: [L4D & L4D2] Rock Glow
 
Quote:

Originally Posted by Marttt (Post 2679274)
@AshesBeneath

You could use SetTransmit so you can filter for which teams the glow should appear.
Maybe someone else has a better tip.

-----------------------------------------------------------------------------------------------------

Also, the plugin won't work for "trunk" throw (that happens in Sacrifice map for example)
would be better to get the model from the tank_rock class than hardcoding it.

E.g.
PHP Code:

char sModelName[128];
GetEntPropString(entityProp_Data"m_ModelName"sModelNamesizeof(sModelName));

DispatchKeyValue(GlowRock"model"sModelName); 


thanks for your reply, but i am kinda new for sm scripting, i've never used sdkhooks, can you give me an example of proper usage of SetTransmit SDKHook type for this plugin?


All times are GMT -4. The time now is 01:34.

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