Detecting "Ignite" state
- Ian_Suffix
- Villun
- Posts: 742
- Joined: Wed Aug 20, 2008 12:14 am
- Location: Washington State
-
Games Played
Ville Awards
-
Loading…
Detecting "Ignite" state
Hey, all. New question, one that heavily relates to my little shoutbox request for assistance in testing some entities.
The question is short, and the answer is fleeting: how does one detect if an !activator, the player nearest to an entity, is on FIAAAAH?
The question is short, and the answer is fleeting: how does one detect if an !activator, the player nearest to an entity, is on FIAAAAH?
[quote="Ian_Suffix";p="129559"]
Hey, all. New question, one that heavily relates to my little shoutbox request for assistance in testing some entities.
The question is short, and the answer is fleeting: how does one detect if an !activator, the player nearest to an entity, is on FIAAAAH?
[/quote]
what you on about?
Hey, all. New question, one that heavily relates to my little shoutbox request for assistance in testing some entities.
The question is short, and the answer is fleeting: how does one detect if an !activator, the player nearest to an entity, is on FIAAAAH?
[/quote]
what you on about?
- Dog
- Server Ops
- Posts: 14317
- Joined: Sun Oct 15, 2006 12:12 am
- Location: In the bath, having a good think....
-
Games Played
Ville Awards
-
Loading…
That's easy...
Above code detects if a player is on fire, then extinguishes them....
Oh wait, this is a mapping forum?
*Backs out slowly*
Code: Select all
new playerstate = GetEntProp(client, Prop_Send, "m_nPlayerCond")
if ((playerstate & (1 << 14)) != 0)
{
SetEntProp(client, Prop_Send, "m_nPlayerCond", (playerstate & (~(1 << 14))))
}
Oh wait, this is a mapping forum?
*Backs out slowly*
- Ian_Suffix
- Villun
- Posts: 742
- Joined: Wed Aug 20, 2008 12:14 am
- Location: Washington State
-
Games Played
Ville Awards
-
Loading…
I'm not against coding (I have VS2005 and am taking C++ classes after all), but would that be wrapped into the BSP or would that require modding the server? I don't want to make my map incompatible with default settings just because I want to add an environmental effect.
I am quite pleased by your prompt and sincere response, however. Despite the fact I have never made an entity before, that code snippet makes a fair amount of sense.
I am quite pleased by your prompt and sincere response, however. Despite the fact I have never made an entity before, that code snippet makes a fair amount of sense.
Last edited by Ian_Suffix on Sat Oct 25, 2008 12:31 am, edited 1 time in total.
- Stevo
- Everlasting Villun
- Posts: 8753
- Joined: Sun Oct 22, 2006 10:01 pm
- Location: Orange County, CA
- Minecraft name: StevoTVR
- Uplay name: StevoTVR
- Contact:
-
Games Played
Ville Awards
Re: Detecting "Ignite" state
He was joking. That's SourcePawn, which is the language used to create SourceMod plugins. I'm pretty sure it's useless for mapping...
- Ian_Suffix
- Villun
- Posts: 742
- Joined: Wed Aug 20, 2008 12:14 am
- Location: Washington State
-
Games Played
Ville Awards
-
Loading…
- Ian_Suffix
- Villun
- Posts: 742
- Joined: Wed Aug 20, 2008 12:14 am
- Location: Washington State
-
Games Played
Ville Awards
-
Loading…
Who is online
Users browsing this forum: No registered users and 4 guests