Search found 26 matches

by kalle
Tue Aug 23, 2016 5:44 pm
Forum: Plugin Development Support
Topic: Remove Unsafe Characters
Replies: 4
Views: 3929

Re: Remove Unsafe Characters

Wouldn't it be easier to allow only certain characters? Would be better to allow things you know that there are not harmful, eg a-zA-Z0-9-_ and so on. Is called regular expressions and should work beautiful with python :)
by kalle
Mon Aug 22, 2016 11:03 am
Forum: Plugin Development Support
Topic: [CSGO] Gamethread crashes server on give_named_item
Replies: 8
Views: 6138

Re: [CSGO] Gamethread crashes server on give_named_item

Okay thanks for the quick response :) Is there a possibility that it'll be thread safe in future? These calculations are not very heavy atm but I have to struggle with some test servers sponsored by some guys that even lag on an vanilla 10bot csgo server heavily. So I wanted to deal with that and ex...
by kalle
Mon Aug 22, 2016 9:08 am
Forum: Plugin Development Support
Topic: [CSGO] Gamethread crashes server on give_named_item
Replies: 8
Views: 6138

[CSGO] Gamethread crashes server on give_named_item

Hey guys, I figured out that giving a player a weapon with a gamethread (even if I just proof he is in the team CT or T) the server instantly crashes. Is it a bug on your side or is a gamethread not designed to work with giving named items? Below is an example that let my server crash everytime I sp...
by kalle
Tue Aug 09, 2016 6:49 pm
Forum: Plugin Development Support
Topic: Using custom sounds in CS:GO
Replies: 3
Views: 3333

Re: Using custom sounds in CS:GO

Sadly I had the same problems. I just figured out that .wav files are bad for csgo. But you're using .mp3 files. Do they have some different codec options? You can have a look at that with vlc or other players. I recently had luck and could play every .mp3 file I've found with this source code: http...
by kalle
Mon Aug 08, 2016 4:59 pm
Forum: Plugin Development Support
Topic: Howto do Threading the right way in SP?
Replies: 11
Views: 7759

Re: Howto do Threading the right way in SP?

I've got some question related to the OnTick listener. I can't find something thats called "deltatime" or "frametime". Is there anything to get the time since the last "tick" happened? Otherwise I will implement something on my own.
by kalle
Fri Aug 05, 2016 10:52 am
Forum: Plugin Development Support
Topic: [CSGO] can't grep weapon ammo
Replies: 2
Views: 2627

Re: [CSGO] can't grep weapon ammo

Thanks, feeling dump now. Had recently a look for that on github :/

can now get/set the weapon ammo.

Syntax: Select all

weapon = Weapon(player.get_primary())
if weapon:
current = int(weapon.get_property_short('m_iPrimaryReserveAmmoCount'))
by kalle
Fri Aug 05, 2016 12:05 am
Forum: Plugin Development Support
Topic: [CSGO] can't grep weapon ammo
Replies: 2
Views: 2627

[CSGO] can't grep weapon ammo

Dear community, I can't grep the weapons ammo. I can get the weapon clip, but I need to get all available ammo. The following errror occurs: [SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/plugins/conquest/conquest.py', line 58, in tick_list...
by kalle
Thu Aug 04, 2016 11:32 pm
Forum: Plugin Releases
Topic: BombSecurity v1.2.1
Replies: 8
Views: 8977

Re: BombSecurity v1.0

Thanks for that, works good now. I know it's a little bit of topic but a little problem remains: if I add the bomb with Delay(0, player.give_named_item, 'weapon_c4', 0, None, True) it still drops the first time after giving the bomb to an CT or T. Maybe there is an hook for that, too...
by kalle
Thu Aug 04, 2016 10:30 am
Forum: Plugin Releases
Topic: BombSecurity v1.2.1
Replies: 8
Views: 8977

Re: BombSecurity v1.0

Hey satoon101, thanks for the nice script. Got a problem if I want to give CT that bomb at spawn. He drops the bomb immediately. Because I remove the bomb entity after dropping and creating another entity is it possible that the bomb sticks to the player even on spawn? Or should I just add an delay....
by kalle
Mon Aug 01, 2016 9:02 pm
Forum: Plugin Development Support
Topic: [CSGO] server crash - howto analyse?
Replies: 6
Views: 4856

Re: [CSGO] server crash - howto analyse?

okay thanks for that.
by kalle
Mon Aug 01, 2016 11:24 am
Forum: Plugin Development Support
Topic: [CSGO] server crash - howto analyse?
Replies: 6
Views: 4856

Re: [CSGO] server crash - howto analyse?

Hey, thanks for the answers ^^. And yes I've made the source publically available. Isn't very good at all but it's working quite well for now. I also could figure out what my problem was: the csgo server seems to crash if some variable will get used twice at the same time (written) so I decided to u...
by kalle
Sat Jul 30, 2016 10:22 am
Forum: Plugin Development Support
Topic: [CSGO] server crash - howto analyse?
Replies: 6
Views: 4856

[CSGO] server crash - howto analyse?

Hey guys, I got another problem. Most problems I could solve on my own but not this one. First of all source code isn't publically available yet. If you need it for help I could send it to you. I will release it later on on github but for now it's only a private testing thing at all. My CSGO server ...
by kalle
Wed Jul 13, 2016 3:30 pm
Forum: Plugin Development Support
Topic: Howto display additional information?
Replies: 3
Views: 3278

Re: Howto display additional information?

So I've got a question related to this :) - the main problem is that players can't use their hotkeys for weapon changing any more because it's a menu at all. Any possibility to render stuff directly in the UI in CSGO instead of using a menu? Maybe directly as an 2D Object that marks an object? Somet...
by kalle
Fri Jul 08, 2016 1:06 pm
Forum: Plugin Development Support
Topic: Howto do Threading the right way in SP?
Replies: 11
Views: 7759

Re: Howto do Threading the right way in SP?

Great,

thank you guys. You rock :)

@iPlayer yea but I'm often use the quick reply and use to write the bb code syntax on my own. But I'll remember for the future and use syntax instead of code for future problems :)
by kalle
Fri Jul 08, 2016 12:30 pm
Forum: Plugin Development Support
Topic: Howto do Threading the right way in SP?
Replies: 11
Views: 7759

Re: Howto do Threading the right way in SP?

Mhh okay I'm feeling dumb now. After spending 30 more minutes (and create an example for you) I just solved one of the problems. I just have used "return" instead of "continue" and every time a player died the tick_listener was stopped with "return". And maybe because o...
by kalle
Fri Jul 08, 2016 10:59 am
Forum: Plugin Development Support
Topic: Howto do Threading the right way in SP?
Replies: 11
Views: 7759

Howto do Threading the right way in SP?

Hey guys, I really appreciate your help. This forum is very active and because of that I'm getting my little mods better and better. In another thread you mentioned that I should use "Delay" for "outsourcing" things that just need time e.G. 3 seconds in the future. For my modific...
by kalle
Thu Jul 07, 2016 2:20 pm
Forum: Plugin Development Support
Topic: Howto display additional information?
Replies: 3
Views: 3278

Re: Howto display additional information?

Thanks,

now I'm feeling dumb because I had a look at that class before and didn't find a solution. Anyway its working quite well for me :)
by kalle
Thu Jul 07, 2016 11:30 am
Forum: Plugin Development Support
Topic: Howto display additional information?
Replies: 3
Views: 3278

Howto display additional information?

Dear Community members, I got another question regarding on what is the best option to display something in the hud of a player. I currently use HintText for fast changing things and its working very well. But I'm on my way to create a little gamemode where I need to display dynamic changing text fo...
by kalle
Thu Jul 07, 2016 11:27 am
Forum: Plugin Development Support
Topic: [CSGO] Howto respawn a player?
Replies: 21
Views: 12550

Re: [CSGO] Howto respawn a player?

Okay thank you all. Very active community. It's working quite well now :) no problems so far.
by kalle
Wed Jul 06, 2016 2:58 pm
Forum: Plugin Development Support
Topic: [CSGO] Howto respawn a player?
Replies: 21
Views: 12550

Re: [CSGO] Howto respawn a player?

Hey gus, okay it's now working fine with the chat command example from Ayuto. But thats not what I primary want to do... I wan't the player to respawn at any time the script want's. @Event('player_death') def player_death(event): player = Player.from_userid(event['userid']) player.respawn() The abov...

Go to advanced search