Search found 1429 matches

by satoon101
Fri Apr 28, 2017 11:04 am
Forum: Plugin Development Support
Topic: Hook Player Weapon Equip
Replies: 4
Views: 49

Re: Hook Player Weapon Equip

I am a bit confused. The thread title and first sentence of the OP reference equipping a weapon, but the code you use is for bumping into a weapon. Those are 2 totally different things.

*Edit: if you want to hook equipping, hook equip_weapon instead:
CS:S
CS:GO
by satoon101
Thu Apr 27, 2017 12:15 pm
Forum: Plugin Development Support
Topic: Is current date between 2 dates
Replies: 9
Views: 99

Re: Is current date between 2 dates

Well, that wouldn't work in the case where you wanted to bridge new years. A simple way to support multiple holidays in the same plugin would be something like this: from datetime import date # ==================== # >> CONFIGURATION # ==================== # Add the holidays holidays = { "St. P...
by satoon101
Tue Apr 25, 2017 12:55 am
Forum: Plugin Development Support
Topic: Is current date between 2 dates
Replies: 9
Views: 99

Re: Is current date between 2 dates

datetime objects require year, month, and day, so no you couldn't. Plus, if you wanted to go something like December 14 - January 7, without the year it would not work. It's easy enough to get the current year anyway:

Syntax: Select all

from datetime import datetime

current_year = datetime.now().year
by satoon101
Sun Apr 16, 2017 3:26 pm
Forum: Plugin Development Support
Topic: anyway that i can get IpAddress and Port etc in cs:go?
Replies: 6
Views: 117

Re: anyway that i can get IpAddress and Port etc in cs:go?

I honestly don't like the idea of using ConVars, in this instance, because their values are easily changed. But, that does certainly work if you aren't worried about that issue.
by satoon101
Tue Apr 11, 2017 12:54 pm
Forum: General Discussion
Topic: Python 3.6 support?
Replies: 2
Views: 118

Re: Python 3.6 support?

It has been planned for a while, we just haven't gotten around to doing it, yet. And yes, there are a lot of nice updates in 3.6!
by satoon101
Sat Apr 08, 2017 7:19 pm
Forum: Plugin Releases
Topic: Anti Team-Flash v1.3
Replies: 10
Views: 980

Re: Anti Team-Flash v1.3

Updated plugin for newest SP changes.
by satoon101
Sat Apr 08, 2017 7:18 pm
Forum: Plugin Releases
Topic: BombSecurity v1.2
Replies: 7
Views: 745

Re: BombSecurity v1.2

Updated plugin for newest SP changes.
by satoon101
Sat Apr 08, 2017 7:18 pm
Forum: Plugin Releases
Topic: Cut Wire v1.3
Replies: 11
Views: 1842

Re: Cut Wire v1.3

Updated plugin for newest SP changes.
by satoon101
Sat Apr 08, 2017 7:17 pm
Forum: Plugin Releases
Topic: Dissolver v1.2
Replies: 5
Views: 579

Re: Dissolver v1.2

Updated plugin for newest SP changes.
by satoon101
Sat Apr 08, 2017 7:16 pm
Forum: Plugin Releases
Topic: MostDamage v1.3
Replies: 23
Views: 6071

Re: MostDamage v1.3

Updated plugin for newest SP changes.
by satoon101
Sat Apr 08, 2017 7:14 pm
Forum: Plugin Releases
Topic: Sweet and Sour Chicken v1.1
Replies: 3
Views: 299

Re: Sweet and Sour Chicken v1.1

Updated plugin to newest SP changes.

Also added messaging system to notify players when they have received a reward or punishment.
by satoon101
Wed Apr 05, 2017 10:48 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 82
Views: 3208

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

Ah, ok, try adding a leading space just like we have to use in our base SayText(2) implementations:
https://github.com/Source-Python-Dev-Te ... se.py#L257
by satoon101
Wed Apr 05, 2017 9:54 pm
Forum: Plugin Development Support
Topic: Modifying chat with sayfilter but SayCommand doesnt "register"
Replies: 82
Views: 3208

Re: Modifying chat with sayfilter but SayCommand doesnt "register"

I'm not fully sure I understand your issue with \x02. If I remember correctly, in CS:S, that color acts like \x01, but in CS:GO it is a different color (but NOT the team color, as \x03 is the team color). As for the issue with SourceMod, have you tried this: https://github.com/Source-Python-Dev-Team...
by satoon101
Wed Apr 05, 2017 12:35 am
Forum: Plugin Development Support
Topic: Fall/Damage Slowdown
Replies: 5
Views: 131

Re: Fall/Damage Slowdown

It looks like that property is located at CCSPlayer.cslocaldata.m_flVelocityModifier . So, you would need to use cslocaldata.m_flVelocityModifier to get/set the value. * Edit: also, to get all properties for a specific entity, you can simply run the following: for x in entity.properties: print(x...
by satoon101
Sun Apr 02, 2017 5:05 pm
Forum: Plugin Development Support
Topic: Help on TypedCommand
Replies: 7
Views: 129

Re: Help on TypedCommand

https://github.com/Source-Python-Dev-Te ... ands.h#L57

This todo is there specifically for that issue.
by satoon101
Sun Apr 02, 2017 3:16 pm
Forum: Plugin Development Support
Topic: Dropping Knife
Replies: 12
Views: 510

Re: Dropping Knife

I'm not sure where you found that drop_weapon pre-hook, but I imagine you would rather that be a post-hook. Removing the weapon before it has been "dropped" will have some strange side-effects, like what you are seeing.
by satoon101
Sun Apr 02, 2017 3:13 pm
Forum: Plugin Development Support
Topic: block scoreboard
Replies: 13
Views: 579

Re: block scoreboard

I doubt "+score" is sent to the server to be intercepted as a ClientCommand, but you can certainly test.
by satoon101
Sun Apr 02, 2017 3:11 pm
Forum: Plugin Development Support
Topic: Spawn Points Problem
Replies: 3
Views: 79

Re: Spawn Points Problem

I'm pretty sure that your issue is because round_start fires AFTER player_spawn . You could always try to spawn players that are on a team but dead on round_start . Though, I am not sure why you are doing this every single round. I think you would be better off waiting 1 tick after the map loads to ...

Go to advanced search