Raised This Month: $32 Target: $400
 8% 

[L4D & L4D2] Rock Glow


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Aya Supay
Member
Join Date: Nov 2015
Plugin ID:
6780
Plugin Version:
1.1
Plugin Category:
Fun Stuff
Plugin Game:
Left 4 Dead
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    [L4D & L4D2] Rock Glow
    Old 10-26-2019 , 23:18   [L4D & L4D2] Rock Glow
    Reply With Quote #1

    MY VIDEO Click
    Attached Files
    File Type: sp Get Plugin or Get Source (l4d_rock_glow.sp - 570 views - 3.1 KB)

    Last edited by Aya Supay; 01-30-2020 at 12:03.
    Aya Supay is offline
    Dragokas
    Veteran Member
    Join Date: Nov 2017
    Location: Ukraine on fire
    Old 10-29-2019 , 10:57   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #2

    AFAIK, L4D2 doesn't have this entity: prop_glowing_object

    See my death soul plugin for samples.
    __________________
    Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
    [My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
    Dragokas is offline
    Aya Supay
    Member
    Join Date: Nov 2015
    Old 10-29-2019 , 13:17   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #3

    Quote:
    Originally Posted by Dragokas View Post
    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
    Aya Supay is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 12-06-2019 , 07:47   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #4

    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);

    __________________

    Last edited by HarryPotter; 12-06-2019 at 07:49.
    HarryPotter is offline
    Silvers
    SourceMod Plugin Approver
    Join Date: Aug 2010
    Location: SpaceX
    Old 12-12-2019 , 21:22   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #5

    Quote:
    Originally Posted by fbef0102 View Post
    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.
    __________________
    Silvers is offline
    HarryPotter
    Veteran Member
    Join Date: Sep 2017
    Location: Taiwan, Asia
    Old 12-15-2019 , 19:10   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #6

    Quote:
    Originally Posted by Silvers View Post
    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)
    __________________

    Last edited by HarryPotter; 12-15-2019 at 19:11.
    HarryPotter is offline
    Aya Supay
    Member
    Join Date: Nov 2015
    Old 12-15-2019 , 20:04   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #7

    Quote:
    Originally Posted by fbef0102 View Post
    have a look in l4d1 (original plugin before I modify)
    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
    Aya Supay is offline
    AshesBeneath
    New Member
    Join Date: May 2019
    Old 01-07-2020 , 10:39   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #8

    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?

    Last edited by AshesBeneath; 01-07-2020 at 10:41.
    AshesBeneath is offline
    Marttt
    Veteran Member
    Join Date: Jan 2019
    Location: Brazil
    Old 01-07-2020 , 11:37   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #9

    @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); 
    __________________

    Last edited by Marttt; 01-07-2020 at 11:48.
    Marttt is offline
    AshesBeneath
    New Member
    Join Date: May 2019
    Old 01-07-2020 , 12:56   Re: [L4D & L4D2] Rock Glow
    Reply With Quote #10

    Quote:
    Originally Posted by Marttt View Post
    @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?

    Last edited by AshesBeneath; 01-07-2020 at 12:57.
    AshesBeneath is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 18:30.


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