Search found 569 matches

by iPlayer
Sun May 07, 2017 5:02 pm
Forum: Plugin Development Support
Topic: [CSGO] Need help to spawn and move entity
Replies: 10
Views: 8825

Re: [CSGO] Need help to spawn and move entity

If you need a linear movement between two points, I'd recommend looking towards func_movelinear entity: import math from entities.entity import Entity from mathlib import Vector def vec2angle(vec): atan = math.degrees(math.atan(coord_eye_vec.y / coord_eye_vec.x)) if coord_eye...
by iPlayer
Sun May 07, 2017 12:29 pm
Forum: Plugin Development Support
Topic: [CSGO] Need help to spawn and move entity
Replies: 10
Views: 8825

Re: [CSGO] Need help to spawn and move entity

Do you want your entity to move over time in some direction?
by iPlayer
Sat May 06, 2017 8:53 pm
Forum: Plugin Releases
Topic: [CS:GO/OrangeBox] Bad SetLocalAngles(...) fix
Replies: 17
Views: 17485

Re: [CS:GO/OrangeBox] Bad SetLocalAngles(...) fix

Replaced symbol with a signature on CS:GO Linux.
by iPlayer
Sat May 06, 2017 8:43 pm
Forum: Plugin Releases
Topic: [CS:S] Prop_Physics Enforcer
Replies: 0
Views: 4694

[CS:S] Prop_Physics Enforcer

[CS:S] Prop_Physics Enforcer https://pastebin.com/14yYxZse Description If you're tired of the screwed up physics all across the official CS:S maps, you'll probably like this plugin. Especially if you're familiar with all the pain the following screenshot implies: http://i.imgur.com/9ICclYZ.jpg It r...
by iPlayer
Fri May 05, 2017 5:47 pm
Forum: General Discussion
Topic: Client crashing on connect
Replies: 7
Views: 6196

Re: Client crashing on connect

not post anything, anymore

Why don't you stick to what you said? ;) ?
by iPlayer
Fri May 05, 2017 3:09 pm
Forum: General Discussion
Topic: Client crashing on connect
Replies: 7
Views: 6196

Re: Client crashing on connect

Okay, we've narrowed down the issue and the reason for the error (in this particular case) was the SetTransmit hook.
See also: https://forums.sourcepython.com/viewtopic.php?p=10273#p10273
by iPlayer
Fri May 05, 2017 3:05 pm
Forum: Code examples / Cookbook
Topic: Making certain entities invisible to certain players
Replies: 9
Views: 36118

Re: Making certain entities invisible to certain players

Updated the first post. Added the following check to the hook: # We always transmit the player to himself. If we don't, bad things happen. if player.index == entity.index: return None In all games "bad things" is player not being able to see themselves moving, i.e. they will be stuck o...
by iPlayer
Thu May 04, 2017 4:45 pm
Forum: General Discussion
Topic: Client crashing on connect
Replies: 7
Views: 6196

Re: Client crashing on connect

Try adding GoTV on your server. Add this to your launch line:

Code: Select all

+tv_enable 1 +tv_maxclients 0 +tv_allow_camera_man 0 +tv_allow_static_shots 0


This problem has been following many SM scripters, as well. GoTV seems to fix the issue.
by iPlayer
Tue May 02, 2017 10:01 am
Forum: Plugin Releases
Topic: [CS:GO/OrangeBox] Bad SetLocalAngles(...) fix
Replies: 17
Views: 17485

Re: [CS:GO/OrangeBox] Bad SetLocalAngles(...) fix

Ah. Got it. CS:GO on linux doesn't have server_srv.so like other games, it's just server.so.

I've disabled _srv suffix check for CS:GO, should work fine now (if the signatures are still up to the date).
by iPlayer
Fri Apr 28, 2017 12:53 pm
Forum: Plugin Releases
Topic: [ANY] Entity AntiSpam
Replies: 0
Views: 4803

[ANY] Entity AntiSpam

[ANY] Entity AntiSpam https://github.com/KirillMysnik/SP-Ent-AntiSpam Description This plugin measures average server framerate every 5 seconds (by default) and does some checks if it drops below a certain value. The checks it does is basically searching piles of physics collideables that might cau...
by iPlayer
Fri Apr 28, 2017 8:57 am
Forum: Plugin Development Support
Topic: Hook Player Weapon Equip
Replies: 4
Views: 4384

Re: Hook Player Weapon Equip

If you crash in a post-hook but everything seems to work fine in a pre-hook, this might be related.
by iPlayer
Thu Apr 27, 2017 1:48 pm
Forum: Plugin Requests
Topic: [HL2:DM] sound
Replies: 28
Views: 20200

Re: [HL2:DM] sound

Nope, sorry. Maybe somebody else.

But I'd recommend you to consult whoever wrote that plugin. Simply because reading somebody else's code is harder than reading your own code. You'd make things easier for everyone.
by iPlayer
Thu Apr 27, 2017 1:41 pm
Forum: Plugin Requests
Topic: [HL2:DM] sound
Replies: 28
Views: 20200

Re: [HL2:DM] sound

Whoever wrote that line in the first place made a mistake. That line cannot be correct. https://github.com/Source-Python-Dev-Team/Source.Python/blob/0834c5811020b29b10238f1a6e230da3fd639df4/addons/source-python/packages/source-python/entities/_base.py#L691 The third argument should be iterable. Whil...
by iPlayer
Thu Apr 27, 2017 1:32 pm
Forum: Plugin Requests
Topic: [HL2:DM] sound
Replies: 28
Views: 20200

Re: [HL2:DM] sound

Why do I feel like this line

Syntax: Select all

player.delay(duration, remove_overlay, (index))

should be raising exceptions?

Do you get exceptions?
by iPlayer
Wed Apr 26, 2017 9:10 am
Forum: Plugin Development Support
Topic: Creating Player Hat
Replies: 4
Views: 4628

Re: Creating Player Hat

4. When parented to a player they should disappear when the player entity dies due to being parented. Is this not happening? Well, when an entity gets removed, its "children" get teleported to (0, 0, 0). But the thing is that the player entity is never removed (only when player disconnect...
by iPlayer
Tue Apr 25, 2017 8:56 pm
Forum: Plugin Releases
Topic: [TF2, linux] PLRBots
Replies: 1
Views: 4671

Re: [TF2, linux] PLRBots

PLRBots update

The plugin now supports more accurate bot class balancing when a Class Limit plugin is available
by iPlayer
Tue Apr 25, 2017 8:48 pm
Forum: Plugin Releases
Topic: [TF2] Class Limit
Replies: 0
Views: 5053

[TF2] Class Limit

[TF2] Class Limit https://github.com/KirillMysnik/sp-tf2-classlimit Description This plugin will help keep classes balanced by forbidding them from joining when they're full and switching extra players to other classes. Configuration Copy ../cfg/source-python/class_limit/limits/default.json to defa...
by iPlayer
Tue Apr 25, 2017 2:06 pm
Forum: Plugin Releases
Topic: [ANY] DeadChat
Replies: 14
Views: 12662

Re: [ANY] DeadChat

DeadChat update Works perfectly on bitbuf games and successfully crashes on CS:GO (see Source-Python-Dev-Team/Source.Python#194 ) Fixed a bug with dupe chat messages when HLTV is on the server (see Source-Python-Dev-Team/Source.Python#185 ) Dedicated separate files to signatures / offsets Updated s...
by iPlayer
Tue Apr 25, 2017 10:18 am
Forum: Plugin Releases
Topic: [ANY] Infinite Jumping (aka AutoBHop)
Replies: 6
Views: 9396

Re: Infinite Jumping (aka AutoBHop)

Infinite Jumping v1.0.2
New style info
This plugin now sets sv_enablebunnyhopping 1 and sv_airaccelerate 9999 on its own - this decision is made because apparently these two cvars are protected (locked) in some games, so you can't set them via config files.
by iPlayer
Tue Apr 25, 2017 9:51 am
Forum: Plugin Development Support
Topic: Is current date between 2 dates
Replies: 9
Views: 7404

Re: Is current date between 2 dates

My approach from time import struct_time def _build_struct(year, month, day, hour, minute, second): return struct_time((year, month, day, hour, minute, second, 0, 0, 0)) def build_yearless_struct(month, day, hour, minute, second): return _build_struct(0, month, da...

Go to advanced search