Raised This Month: $ Target: $400
 0% 

Showing results 1 to 16 of 16
Search took 0.00 seconds.
Search: Posts Made By: MousePad
Forum: Scripting Help 04-29-2013, 11:41
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

I guess map load is way out of scope for AMX Mod X. I was thinking about writing a C program and reading all my maps and modifying their light style values. I saw parts like this in the file when I...
Forum: Scripting Help 04-28-2013, 20:13
Replies: 18
Views: 2,974
Posted By MousePad
Re: Rank message fail :/

As far as I know, that join team will be called when the player is connected the first time as a spectator before choosing a team. If you want a dirty fix without checking if the team is T or CT, you...
Forum: Scripting Help 04-28-2013, 19:50
Replies: 18
Views: 2,974
Posted By MousePad
Re: Rank message fail :/

Can you paste your final code here?
Forum: Scripting Help 04-28-2013, 19:28
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

This brings me new hopes:

#include <amxmodx>
#include <fakemeta>
#include <engine>

public plugin_precache()
{
register_forward( FM_Spawn, "Forward_Spawn" );
}
Forum: Scripting Help 04-28-2013, 18:34
Replies: 18
Views: 2,974
Posted By MousePad
Re: Rank message fail :/

Did you try reading this when the player spawns? Or maybe you could try to get it a couple seconds after client_putinserver.
Forum: Scripting Help 04-28-2013, 06:51
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

Yes Arkshine. Changing their light style would be the best. But if it's the harder/longer way, removing them should be fine too. All I want is getting rid of flickering lights. Thanks a lot for...
Forum: Scripting Help 04-28-2013, 03:40
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

Well thanks a lot for looking into it anyway. I've tried setting an existing button's target along with giving the light a targetname too. Interesting thing is if I take a light which is designed to...
Forum: Scripting Help 04-25-2013, 23:38
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

If you can switch them off that's good enough for me. All I want is that flickering being gone(Mostly because of fps issues). How it's gone doesn't matter at all. I've been reading/trying things for...
Forum: Scripting Help 04-25-2013, 22:14
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

Maybe this can make things simpler. Is there any way I can remove a light entity as if it never existed in the map? Seems like when you remove light entities their lighting still remains. Just like...
Forum: Scripting Help 04-25-2013, 02:03
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

Connor I had already looked at that source but never paid attention to the >=32 check. That gave me new hopes but things still fail even when I set m_iStyle to 32 and try with and without dispatching...
Forum: Scripting Help 04-25-2013, 00:08
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

Wow thanks, never thought of it :shock:

I tried:
DispatchKeyValue( iEnt, "style", "0")
DispatchKeyValue( iEnt, "style", 0)

In both cases m_iStyle did actually change to 0. But the lights...
Forum: Scripting Help 04-24-2013, 23:53
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

Thank you so much! The reason I wanted to keep them was to set flickering lights to normal. The map that I'm testing has lights set their appearance to "Flicker B", which corresponds to value 6 for...
Forum: Scripting Help 04-24-2013, 19:48
Replies: 19
Views: 3,776
Posted By MousePad
Re: Getting light entities in a map

Wow thanks a lot for clarifying that! Is there any way I can alter those entities and set a target name before they spawn?
Forum: Scripting Help 04-24-2013, 17:01
Replies: 19
Views: 3,776
Posted By MousePad
Getting light entities in a map

I'm trying to find all the light entities in the map. I decompiled the maps I tested and I can see int the entity report of Hammer that they have several light entities with the classname "light"....
Forum: Scripting Help 04-21-2013, 18:30
Replies: 1
Views: 812
Posted By MousePad
Re: Changing light entity properties

I'm not sure if I'm following the correct path. I think I can use the set_pdata_int function along with this information about light entities:
http://wiki.amxmodx.org/CLight_%28CS%29

I'm trying...
Forum: Scripting Help 04-21-2013, 17:03
Replies: 1
Views: 812
Posted By MousePad
Changing light entity properties

How can I retrieve the "Appearance" property of a light entity and change it? For instance I would like to check if a light entity has its Appearance set to "Flicker B" and change its value to...
Showing results 1 to 16 of 16

 
Forum Jump

All times are GMT -4. The time now is 10:48.


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