Search found 499 matches

by BackRaw
Fri Jul 20, 2018 4:37 am
Forum: Plugin Development Support
Topic: Strange Convar.set_int behavior
Replies: 1
Views: 86

Re: Strange Convar.set_int behavior

Maybe try

Syntax: Select all

from cvars import cvar

cvar.find_var(line).set_int(0)
by BackRaw
Fri Jul 20, 2018 1:15 am
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.9.1
Replies: 25
Views: 2586

Re: Ultimate Deathmatch v1.9.1

UDM v1.9.1 released!
Download link: https://github.com/backraw/udm/releases/tag/v1.9.1

Additions
by BackRaw
Thu Jul 19, 2018 9:00 pm
Forum: Plugin Requests
Topic: [CS:S] Trikz
Replies: 8
Views: 393

Re: [CS:S] Trikz

Got it! I used Satoon's script as a template: # ============================================================================ # >> IMPORTS # ============================================================================ # Source.Python # Colors from colors import ORANGE from colors import WHITE # Comma...
by BackRaw
Thu Jul 19, 2018 4:54 pm
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.9.1
Replies: 25
Views: 2586

Re: Ultimate Deathmatch v1.9

UDM v1.9 released! Download link: https://github.com/backraw/udm/releases/tag/v1.9 Fixes ⋅ Fix config strings ⋅  Fix and improve weapon silencing ⋅ Fix checking the distance between alive player locations and a potential spawn point ⋅ Fix time penalty string ...
by BackRaw
Wed Jul 18, 2018 9:47 pm
Forum: Plugin Development Support
Topic: Set "lastinv"
Replies: 2
Views: 39

Re: Set "lastinv"

L'In20Cible wrote:Player.last_weapon

I should've looked through the data files... thank you very much!
by BackRaw
Wed Jul 18, 2018 6:27 am
Forum: Plugin Development Support
Topic: Set "lastinv"
Replies: 2
Views: 39

Set "lastinv"

Hi,

is there any way to set the value for lastinv via player.client_command() or something else?
I'm trying to set the property behind it only without causing the player to actually use it like you would with

Syntax: Select all

player.client_command('use weapon_knife', True)
for example.

Thanks!
by BackRaw
Tue Jul 17, 2018 9:57 pm
Forum: General Discussion
Topic: Python 3.7 support?
Replies: 0
Views: 34

Python 3.7 support?

Hi,

any plans on supporting Python 3.7? I'm particularly interested in data classes.

Edit: I could try myself, if you point me to the right direction. :)
by BackRaw
Sat Jul 14, 2018 2:56 pm
Forum: Plugin Requests
Topic: [CS:S] Trikz
Replies: 8
Views: 393

Re: [CS:S] Trikz

I can take a look as well next week.
by BackRaw
Fri Jan 26, 2018 11:26 pm
Forum: Plugin Development Support
Topic: How to best set spawn points
Replies: 8
Views: 746

Re: PreHook cancel/modify damage

Thanks guys!
by BackRaw
Fri Jan 26, 2018 2:52 pm
Forum: Plugin Development Support
Topic: How to best set spawn points
Replies: 8
Views: 746

Re: PreHook cancel/modify damage

What method do you use to set the location? I'm not quite sure, just the best I guess lol. The best way I have seen to do spawn points isn't to manually set the player's origin on/after spawn, but to remove the old spawn points and create new ones. Is there any reason you can't do that? But this is...
by BackRaw
Mon Jan 22, 2018 10:02 pm
Forum: Plugin Development Support
Topic: How to best set spawn points
Replies: 8
Views: 746

Re: PreHook cancel/modify damage

I want to set the player's spawn point as soon as possible in my UDM plugin. Sometimes a player would spawn on a default location and then 'flies' through the map to the new location (but really, really fast). But luckily you don't see it very often. Nonetheless I feel that the event player_spawn is...
by BackRaw
Mon Jan 22, 2018 9:51 pm
Forum: Plugin Development Support
Topic: How to best set spawn points
Replies: 8
Views: 746

How to best set spawn points

# Function name, arguments, return type add_account ('POINTER', 'INT', 'BOOL', 'BOOL', 'STRING') VOID add_context ('POINTER', 'POINTER') VOID add_output ('POINTER', 'POINTER') VOID autobuy ('POINTER',) VOID become_ragdoll ('POINTER', 'POINTER') VOID blind ('POINTER', 'FLOAT', 'FLOAT', 'FLOAT') VOID...
by BackRaw
Sat Jan 13, 2018 9:10 pm
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 431

Re: CS:S send Buy Menu anytime/anywhere

Haha okay. Maybe I'll leave it for now. :D
by BackRaw
Sat Jan 13, 2018 7:35 am
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 431

Re: CS:S send Buy Menu anytime/anywhere

I tried two things: ⋅ Modify the existing buyzones (make them bigger). ⋅ Create new buyzones. Unfortunately, both didn't work, so here is the hacky solution: import memory from entities.hooks import EntityPreHook from entities.hooks import EntityCondition from entities.entity im...
by BackRaw
Thu Jan 11, 2018 12:27 pm
Forum: Plugin Development Support
Topic: CS:S send Buy Menu anytime/anywhere
Replies: 4
Views: 431

CS:S send Buy Menu anytime/anywhere

Hi, I have a question about the the buy menu in CS:S. I want to simulate the behavior of mp_buy_anywhere for CS:GO. As I see it, those two things contribute to how buying is restricted by time/position in CS:S: ⋅  mp_buytime ⋅ "Range" of each of the func_buyzone entitie...
by BackRaw
Fri Jan 05, 2018 4:07 am
Forum: Plugin Releases
Topic: Ultimate Deathmatch v1.9.1
Replies: 25
Views: 2586

Re: Ultimate Deathmatch v1.8.5

UDM v1.8.5 released!
Download link: https://github.com/backraw/udm/releases/tag/v1.8.5

Fixes
by BackRaw
Wed Dec 20, 2017 10:40 pm
Forum: Plugin Development Support
Topic: @staticmethod question
Replies: 3
Views: 432

Re: @staticmethod question

I like your way of approaching this, thanks.
by BackRaw
Thu Dec 14, 2017 9:16 am
Forum: Plugin Development Support
Topic: @staticmethod question
Replies: 3
Views: 432

@staticmethod question

Hi, I have the following example class: class MyClass(object): # ... some instance methods ... @staticmethod def my_static_method(value): return value * 5 # Global instance for the class my_class = MyClass() # ... # Since it's a static method, it should be called like thi...
by BackRaw
Wed Dec 13, 2017 6:36 am
Forum: Plugin Development Support
Topic: How to use PlayerAnimation.RELOAD?
Replies: 22
Views: 2113

Re: How to use PlayerAnimation.RELOAD?

Ayuto wrote:I just stumbled about our last discussion about infinite ammo:
viewtopic.php?p=7838#p7838

Why don't you use the RemoveAmmo hook?

Whoops I totally forgot about that post. I'll look into it, thanks for the reminder!

Edit: Sorry for double posting.

Go to advanced search