Raised This Month: $51 Target: $400
 12% 

[L4D2] Trigger Alarm Car


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RU_6uK
SourceMod Donor
Join Date: May 2010
Old 10-22-2010 , 07:59   [L4D2] Trigger Alarm Car
Reply With Quote #1

How to determine who fired into alarm car. This trigger is appropriate?
triggered_car_alarm
But he did not describe the structure. How to use this game event?
RU_6uK is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 10-22-2010 , 17:06   Re: [L4D2] Trigger Alarm Car
Reply With Quote #2

I would suggest using SDKHooks and using its trace attack function then check that the entity they shot is what ever the car alarm entity is(have to look it up) if the player is within the activation range(have no idea what it is) return client or use client how you want to.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 10-22-2010 , 17:51   Re: [L4D2] Trigger Alarm Car
Reply With Quote #3

From modevents.res file

PHP Code:
    "triggered_car_alarm"
    
{
    } 
There is no structure.


Same file

PHP Code:
    "explain_disturbance"        // explain that disturbances (car alarm) attract infected horde
    
{
        
"userid"    "short"
        "subject"    "long"        
// The source of disturbance
    

Maybe that can help you.



There is also the way of SDKHooks, i would try OnTakeDamage.
AtomicStryker is offline
RU_6uK
SourceMod Donor
Join Date: May 2010
Old 10-24-2010 , 00:07   Re: [L4D2] Trigger Alarm Car
Reply With Quote #4

Thanks for help. It turns out harder than I thought. I just wanted to print into chat player nickname on who triggered car alarm. Similarly, a chat message when a witch scare.
explain_disturbance this trigger does not fit
RU_6uK is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 10-24-2010 , 05:56   Re: [L4D2] Trigger Alarm Car
Reply With Quote #5

You could try HookEntityOutput and get the Outputs of prop_car_alarm's "OnCarAlarmStart" and whatever the Witch has when triggered
AtomicStryker is offline
Reply



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:45.


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