Search found 197 matches

by Tuck
Thu Oct 09, 2014 4:11 pm
Forum: Plugin Development Support
Topic: Send message to a single player
Replies: 4
Views: 4428

Index for a player on CT will give blue "team color" and so on for t and spec, just put the users index

this bellow is how i would do it For example:

Syntax: Select all

Saytext2(msg, user.index, user)
by Tuck
Thu Sep 04, 2014 6:02 pm
Forum: Plugin Development Support
Topic: SayText() not working in CS:GO?
Replies: 25
Views: 18423

Try

Syntax: Select all

from messages import SayText2


instead of

Syntax: Select all

from messages import SayText


remember to change the method's name also.
by Tuck
Thu Sep 04, 2014 6:00 pm
Forum: Whatever
Topic: Server crash on SP loading
Replies: 16
Views: 15270

Load() will be called everytime the script "loads", code written outside. Will just be executed once, and not upon reloads.


edit: my bad though something else about the script manager
by Tuck
Wed May 14, 2014 5:18 pm
Forum: Whatever
Topic: Building for linux
Replies: 11
Views: 12296

Syntax: Select all

from engines import EngineSound


I noticed thanks :)
by Tuck
Wed May 14, 2014 1:34 pm
Forum: Whatever
Topic: Building for linux
Replies: 11
Views: 12296

Would be great if somebody could build current source would really like sound abilities on linux server :)
by Tuck
Tue May 13, 2014 4:27 am
Forum: API Design
Topic: Popups & sound libary
Replies: 17
Views: 17172

Using the path to engine sounds should do it :)
by Tuck
Sun May 11, 2014 6:44 pm
Forum: Whatever
Topic: Building for linux
Replies: 11
Views: 12296

Do you build for linux in virtualbox or cygwin?, never really build anything for linux.. But im trying

would be great with a method or maybe even a guide or a link to one

thanks in advance
by Tuck
Sun May 11, 2014 1:51 pm
Forum: Plugin Development Support
Topic: player_say hook?
Replies: 3
Views: 4511

That was exactly it thanks, i never though of "filter" :/

Is there anyway to change the text as in es u had to return the args again, or none (or something like that)

Or would it just be returning False to all and using saytext to display ?
by Tuck
Sun May 11, 2014 11:28 am
Forum: Plugin Development Support
Topic: Radar possebilities?
Replies: 15
Views: 12541

Radar possebilities?

Is there anyway to call a method, for showing a enemy on the radar? such as a decoy would do

I'm thinking there might be some engine method to do so

thanks in advance :)
by Tuck
Sun May 11, 2014 11:17 am
Forum: Plugin Development Support
Topic: player_say hook?
Replies: 3
Views: 4511

player_say hook?

I think i read about this somewhere, however i cannot find it anymore, looked through the forums a half hour now searching for all kinda weird terms :/ Would be great with a link for the example or just a quick example in a reply player_say hook: as in when people talk we can choose to display it or...
by Tuck
Sat May 10, 2014 10:23 pm
Forum: Plugin Development Support
Topic: Display message to players - csgo?
Replies: 4
Views: 5438

I think my problem is i'm calling saytext2 from without main thread. doing some more testing but i'm almost sure this is it.
by Tuck
Sat May 10, 2014 7:58 pm
Forum: Plugin Development Support
Topic: Display message to players - csgo?
Replies: 4
Views: 5438

It's only when i use Saytext2 it does come up with some weird [] symbol infront of all names i might be using it wrong?, i'm running on linux with latest release infront of all saytext2 messages i do like that i get [] infront of the message (no idea why) i'll try to use the saytext 2 in a different...
by Tuck
Sat May 10, 2014 7:16 pm
Forum: Plugin Development Support
Topic: Display message to players - csgo?
Replies: 4
Views: 5438

Display message to players - csgo?

This code bellow seems to crash the server a few seconds after it's triggered SayText2(message='\x03%s\x01 has earned the achievement \x05%s' % (player.kiwi['tag'], achievement.name)).send() https://github.com/Source-Python-Dev-Team/Source.Python/issues/4 I'm ...
by Tuck
Sat May 10, 2014 4:15 pm
Forum: Plugin Development Support
Topic: Usage of sounds
Replies: 4
Views: 5145

Syntax: Select all

Shared.MRecipientFilter()


do i still import shared from source? and create a recipeintfilter like this ?
by Tuck
Sat May 10, 2014 3:53 pm
Forum: Plugin Development Support
Topic: Usage of sounds
Replies: 4
Views: 5145

Usage of sounds

I have this old code, if anybody could answer a few questions or maybe show a quick example i would appriciate it from core import GameEngine from Source import Shared def server_spawn(GameEvent): #in this event i usally precached 'sprites/laserbeam.vmt' #How would i go for a custom ...
by Tuck
Sat May 10, 2014 3:30 pm
Forum: API Design
Topic: Popups & sound libary
Replies: 17
Views: 17172

was this sound functionality ever added ? :)

engines.sound is there but how would i add custom sounds etc and example of playing sounds would be great thanks in advance
by Tuck
Fri May 09, 2014 8:42 pm
Forum: Plugin Development Support
Topic: Sending messages to all players
Replies: 6
Views: 6723

Is there a way to loop trough all PlayerEntities ? (for something else, where i need each steam id)

or is the PlayerGenerator returning IPlayerInfo for each player ?

from players.helpers import uniqueid_from_playerinfo

could get steamid from this i guess, however is this the fastest way to do this?
by Tuck
Fri May 09, 2014 7:38 pm
Forum: General Discussion
Topic: weapons lib - heads up
Replies: 4
Views: 5337

Okay did you notice after the "fix" i though would fix it [SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/packages/source-python/events/listener.py', line 84, in fire_game_event callback(game_event) File '../addons/source-python/plugins/tuck/tuck.py', line ...
by Tuck
Fri May 09, 2014 7:32 pm
Forum: General Discussion
Topic: weapons lib - heads up
Replies: 4
Views: 5337

weapons lib - heads up

[SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/packages/source-python/events/listener.py', line 84, in fire_game_event callback(game_event) File '../addons/source-python/plugins/tuck/tuck.py', line 456, in player_death clip...
by Tuck
Fri May 09, 2014 7:17 pm
Forum: Code examples / Cookbook
Topic: Particle effects!
Replies: 36
Views: 85675

from mathlib_c import Vector, has been moved i guess?

Does vector object not have .DistTo anymore?

Go to advanced search