Search found 1256 matches
- Sat Dec 26, 2015 9:36 pm
- Forum: Plugin Development Support
- Topic: Copy of player object
- Replies: 6
- Views: 4628
Well, almost all of the values are retrieved dynamically which means that even if you cache an object, all the values will remains the same as the engine. To be honnest, I'm not sure why you would ever need to access an object representing a player that... doesn't exist... What are you trying to do?
- Thu Dec 24, 2015 6:21 pm
- Forum: Plugin Development Support
- Topic: Hooking OnPlayerRunCmd
- Replies: 4
- Views: 3785
- Thu Dec 24, 2015 3:24 am
- Forum: Plugin Requests
- Topic: Snowfall for Black Mesa
- Replies: 29
- Views: 21723
- Sat Dec 19, 2015 8:05 pm
- Forum: Plugin Development Support
- Topic: ticks delays by name
- Replies: 6
- Views: 5089
- Sat Dec 19, 2015 7:53 pm
- Forum: Plugin Development Support
- Topic: Langstrings Options
- Replies: 4
- Views: 3507
Well, no. You cannot assign them an order cause that can change from a language to another and they need to be translated wherever they are in the sentence so they have to be named keywords. Actually, there is 2 styles currently implemented to convert keywords and this is going to change. The Templa...
- Sat Dec 19, 2015 4:44 pm
- Forum: Plugin Development Support
- Topic: Langstrings Options
- Replies: 4
- Views: 3507
Syntax: Select all
strings['EliminatedTarget'].get_string(language=None, target='foo', weapon='bar')
- Sat Dec 19, 2015 12:25 am
- Forum: Plugin Development Support
- Topic: More questions
- Replies: 26
- Views: 17973
Use get_command_string instead. get_arg_string, like the name is telling you, get the "arguments" as a string, not the entire command line.
- Fri Dec 18, 2015 9:35 am
- Forum: Plugin Development Support
- Topic: More questions
- Replies: 26
- Views: 17973
- Fri Dec 18, 2015 12:32 am
- Forum: Plugin Development Support
- Topic: More questions
- Replies: 26
- Views: 17973
- Thu Dec 17, 2015 11:50 pm
- Forum: Plugin Development Support
- Topic: More questions
- Replies: 26
- Views: 17973
- Thu Dec 17, 2015 6:36 am
- Forum: Plugin Development Support
- Topic: Port of IPToCountry and some questions to port from ES To SP
- Replies: 25
- Views: 16514
- Mon Dec 14, 2015 7:51 pm
- Forum: Plugin Requests
- Topic: Snowfall for Black Mesa
- Replies: 29
- Views: 21723
- Sun Dec 13, 2015 12:30 pm
- Forum: Plugin Development Support
- Topic: say hook and a 2 questions
- Replies: 6
- Views: 4613
- Sun Dec 13, 2015 4:09 am
- Forum: Plugin Development Support
- Topic: say hook and a 2 questions
- Replies: 6
- Views: 4613
- Sat Dec 05, 2015 11:25 pm
- Forum: Code examples / Cookbook
- Topic: Particle effects!
- Replies: 36
- Views: 86853
Syntax: Select all
PrecacheGeneric(PARTICLE_FILE, preload=True)
- Sat Dec 05, 2015 11:21 pm
- Forum: Code examples / Cookbook
- Topic: Particle effects!
- Replies: 36
- Views: 86853
You need to precache your pcf file:
Syntax: Select all
from engines.server import engine_server
from listeners import OnLevelInit
@OnLevelInit
def on_level_init(map_name):
engine_server.precache_generic('file.pcf', True)
- Thu Dec 03, 2015 1:45 am
- Forum: Plugin Development Support
- Topic: Modifying bot profile values
- Replies: 4
- Views: 3407
- Thu Dec 03, 2015 12:07 am
- Forum: Plugin Development Support
- Topic: Modifying bot profile values
- Replies: 4
- Views: 3407
- Wed Nov 25, 2015 1:14 pm
- Forum: General Discussion
- Topic: Weird behaviour during warmup
- Replies: 7
- Views: 6389
Player.is_fake_client, is a wrapper around PlayerInfo.is_fake_client which simply check if the FL_FAKECLIENT flag is set on the player. However, since anyone (plugins, scripts, etc.) can change players' flags, that method is not 100% accurate - and yes, checking against the SteamID is probably the b...
- Sat Nov 21, 2015 1:01 pm
- Forum: Plugin Development Support
- Topic: Restart the round
- Replies: 30
- Views: 18788
I tried putting the flag back right after executing endround , but it didn't work for me, so I decided to put the flag back when a new round starts. I guess this is caused by server_command adding the command to the parser which then executes waiting commands once a frame. You need to do something ...