Search found 416 matches
- Tue Aug 09, 2016 1:05 pm
- Forum: Plugin Development Support
- Topic: Using custom sounds in CS:GO
- Replies: 3
- Views: 3347
Using custom sounds in CS:GO
Hey Guys, Im currently trying to make my CS:S plugin work with CS:GO. On CS:S im using sounds which are from hl2 eg. bot or ambient sounds. Sadly I found out that 2 are not in cs:go so I copied them from the vpk's and put them into the csgo/sound/ dic. and when I try to play them easily via Sound(&q...
- Fri Aug 05, 2016 1:57 pm
- Forum: Plugin Development Support
- Topic: LangStrings
- Replies: 4
- Views: 2956
Re: LangStrings
Thats awesome! Good to know
- Fri Aug 05, 2016 1:19 pm
- Forum: Plugin Development Support
- Topic: LangStrings
- Replies: 4
- Views: 2956
LangStrings
Hey, Im just wondering why LangStrings always creates two files. Im simply using strings = LangStrings('plugin_strings') def text(message, keywords, language): return strings[message].get_string(language, **keywords) but in resource/source-python/translations/ i have ...
- Tue Jul 26, 2016 9:42 pm
- Forum: Plugin Development Support
- Topic: Vector.get_distance()
- Replies: 3
- Views: 2625
Re: Vector.get_distance()
Dunno why but it works now by recreating the Vector.
I was using a copy of player_loc and modify all its values inside (to the grid 64) and returned the same Vector but modified back. After creating a new Vector instance and inserting the modified values it finally gives me the right distance.
I was using a copy of player_loc and modify all its values inside (to the grid 64) and returned the same Vector but modified back. After creating a new Vector instance and inserting the modified values it finally gives me the right distance.
- Tue Jul 26, 2016 7:44 pm
- Forum: Plugin Development Support
- Topic: Vector.get_distance()
- Replies: 3
- Views: 2625
Vector.get_distance()
Im having some weird issues, player_loc = player.location print("Test | PlayerLoc: %s" % player_loc) grid_loc = GetGridPosition(player_loc) print("Test | GridLoc: %s" % grid_loc) print(Vector.get_distance(player_loc, grid_loc)) Test | Playe...
- Tue Jul 26, 2016 5:56 pm
- Forum: Plugin Development Support
- Topic: keyvalue "filtername"
- Replies: 4
- Views: 9730
Re: keyvalue "filtername"
Thank you.
Oh damn, forgot to search it with "_" between it, gonna remind me that for next time.
Oh damn, forgot to search it with "_" between it, gonna remind me that for next time.
- Tue Jul 26, 2016 4:21 pm
- Forum: Plugin Development Support
- Topic: keyvalue "filtername"
- Replies: 4
- Views: 9730
keyvalue "filtername"
Hey,
Is it possible to add the keyvalue "filtername"? I havent found it yet.
On all triggers you can give them a filter (name) so it eg activates only if hes ct
Is it possible to add the keyvalue "filtername"? I havent found it yet.
On all triggers you can give them a filter (name) so it eg activates only if hes ct
- Sun Jul 24, 2016 11:46 pm
- Forum: Plugin Development Support
- Topic: SourceTV Listener
- Replies: 22
- Views: 14461
Re: SourceTV Listener
Hey, would this work for cs:go windows/linux too?
Im using this for both games
Im using this for both games
- Sun Jul 24, 2016 10:33 pm
- Forum: Plugin Development Support
- Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
- Replies: 84
- Views: 58415
Re: Modifying chat with sayfilter but SayCommand doesnt "register"
I'm sorry.
I was using this code
I was using this code
- Sat Jul 23, 2016 11:56 am
- Forum: Plugin Development Support
- Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
- Replies: 84
- Views: 58415
Re: Modifying chat with sayfilter but SayCommand doesnt "register"
So after using thise quite few hours, I needed to disable it cause it caused server crashes. I can't tell much since there are no errors or anything, but it crashes "randomly" after someone types in chat. (I wasn't using the on_user_message_created part) EDIT: After trying to find some stu...
- Fri Jul 22, 2016 12:39 am
- Forum: Plugin Development Support
- Topic: Get UDP Port
- Replies: 1
- Views: 1742
Get UDP Port
Hey Guys,
Im currently using the wiki trying to get the current UDP port of the server.
but this returns me a <property object at 0x1B9E0E40>
Im currently using the wiki trying to get the current UDP port of the server.
Syntax: Select all
from engines.server import Server
server_port = Server.udp_port
but this returns me a <property object at 0x1B9E0E40>
- Fri Jul 22, 2016 12:34 am
- Forum: Plugin Development Support
- Topic: Strip Player Problem
- Replies: 1
- Views: 1853
Strip Player Problem
Hey, Recently im getting a weird exception when trying to strip players on their spawn. def strip(self): entity = Entity.create('player_weaponstrip') entity.strip(activator=self.index) entity.remove() File '..\addons\source-python\plugins\plugin\plugin.py', li...
- Sat Jul 16, 2016 3:33 pm
- Forum: Plugin Development Support
- Topic: SourceTV Listener
- Replies: 22
- Views: 14461
Re: SourceTV Listener
Problem solved, my srcds forced 'sv_autorecord 0' after mapchange, checked all cvars server.cfg/autoexec.cfg/srcds parameter + and after I removed them and put them only in autoexec.cfg it worked finally.
- Sat Jul 16, 2016 11:06 am
- Forum: Plugin Development Support
- Topic: SourceTV Listener
- Replies: 22
- Views: 14461
Re: SourceTV Listener
L'In20Cible wrote:Why you remove your post to repost them few hours later?
When I posted it I wasnt sure if it was the official code which wasn't working, so I thought maybe I changed something to make it not work, but in the end I tested it only with the code from above and it doesnt work either
- Fri Jul 15, 2016 7:00 pm
- Forum: Plugin Development Support
- Topic: SourceTV Listener
- Replies: 22
- Views: 14461
Re: SourceTV Listener
Thank you Ayuto!!
Just noticed that OnDemoStarted isnt working, is it just me or someone else has it too?
Just noticed that OnDemoStarted isnt working, is it just me or someone else has it too?
- Wed Jul 13, 2016 12:22 pm
- Forum: Plugin Development Support
- Topic: OnMapStart
- Replies: 2
- Views: 2490
Re: OnMapStart
Exactly what I was looking for! Thanks
- Wed Jul 13, 2016 12:34 am
- Forum: Plugin Development Support
- Topic: OnMapStart
- Replies: 2
- Views: 2490
OnMapStart
Hey, Im currently in phone cause I forgot to create this topic before goimg off, but however Im having problems withy automatic spawn points creator. Im using OnLevelInitialized to check the amount oft spawn points the current map but it always returns 0.. However would it be possible to add an 'OnM...
- Sun Jul 10, 2016 9:54 am
- Forum: Plugin Development Support
- Topic: SourceTV Listener
- Replies: 22
- Views: 14461
Re: SourceTV Listener
I didn't dig into the binaries but, there is certainly a way to hook those. For now, you could simply add your own callbacks to those specific commands and listen to them doing whatever you need to do. Yes, just wrote my own listener, which just "manually" records the demos instead of usi...
- Sun Jul 10, 2016 9:50 am
- Forum: Plugin Development Support
- Topic: SourceTV Listener
- Replies: 22
- Views: 14461
Re: SourceTV Listener
I can't answer your question, but it'd be damn nice if you could implement a way to automatically upload said demo's to a webserver so that people can download, review and give feedback on them. from ftplib import FTP USER = '' PASS = '' SERVER = '' PORT = 21 def connect_ftp...
- Fri Jul 08, 2016 7:31 pm
- Forum: Plugin Development Support
- Topic: OnLevelShutdown and OnLevelInit
- Replies: 4
- Views: 3347
OnLevelShutdown and OnLevelInit
Hey, Is it just me or is OnLevelShutdown after OnLevelInit? Im currently writing my own demo system, but when I execute tv_record 'auto-20160708-211956-surf_ori_l' in OnLevelInit and tv_stoprecord in OnLevelShutdown, im getting Recording SourceTV demo to ./auto-20160708-211956-surf_ori_l.dem... Exec...