Search found 331 matches

by VinciT
Thu Apr 27, 2017 10:09 pm
Forum: Plugin Development Support
Topic: [CSGO/HL2DM] OnEntityCreated called twice?
Replies: 2
Views: 2953

[CSGO/HL2DM] OnEntityCreated called twice?

Is there a reason OnEntityCreated is called twice? #on_entity_created_test.py from listeners import OnEntityCreated @OnEntityCreated def on_entity_created(base_entity): try: index = base_entity.index except: return if index is None: return print('entity with index {} created'.for...
by VinciT
Fri Apr 07, 2017 12:04 am
Forum: Plugin Development Support
Topic: [CSGO/any] DataTable warning suppression
Replies: 2
Views: 3178

[CSGO/any] DataTable warning suppression

I'm using m_flVelocityModifier instead of m_flLaggedMovementValue because it doesn't modify the fall velocity. The problem is, as soon as I set it to anything higher than 1.0, the server console starts getting spammed by DataTable warnings: DataTable warning: player: Out-of-range value (2.000000) in...
by VinciT
Wed Apr 05, 2017 3:20 pm
Forum: Whatever
Topic: Grove Street is back, CS:GO! "Da Hood" custom map
Replies: 2
Views: 13561

Re: Grove Street is back, CS:GO! "Da Hood" custom map

That looks amazing!
by VinciT
Thu Mar 23, 2017 12:52 pm
Forum: General Discussion
Topic: [CSGO] New Custom HUD (game_text)
Replies: 3
Views: 4934

Re: [CSGO] New Custom HUD (game_text)

It seems that bit is still broken, but at least they're working on it: https://github.com/ValveSoftware/csgo-o ... ssues/1351
by VinciT
Mon Mar 06, 2017 7:46 pm
Forum: Plugin Development Support
Topic: CS:GO XRay
Replies: 2
Views: 4860

Re: CS:GO XRay

It's been a while, but I've been messing around with this stuff recently and found a way to do what you were looking for. First things first, the reason the chickens didn't glow in my previous code snippet was because Valve added another property for the glow. You need to set m_flGlowMaxDist in orde...
by VinciT
Sun Mar 05, 2017 7:27 pm
Forum: Plugin Development Support
Topic: Force weapon fire [TF2]
Replies: 2
Views: 3108

Re: Force weapon fire [TF2]

Tested in HL2DM, should work in TF2 as well:

by VinciT
Tue Aug 16, 2016 4:08 pm
Forum: Plugin Development Support
Topic: [HL2DM] Prehooking entity kill
Replies: 3
Views: 3061

Re: [HL2DM] Prehooking entity kill

OnEntityDeleted works great. Thanks guys!
by VinciT
Tue Aug 16, 2016 3:30 am
Forum: Plugin Development Support
Topic: [HL2DM] Prehooking entity kill
Replies: 3
Views: 3061

[HL2DM] Prehooking entity kill

I'm trying to detach a child entity from the parent entity before the parent entity gets removed.
Is it possible to prehook entity kill/remove?
by VinciT
Tue Jul 19, 2016 8:15 pm
Forum: General Discussion
Topic: Is the buildbot broken?
Replies: 1
Views: 2418

Is the buildbot broken?

I'm greeted by a login page and nothing else. And when I do login, it says I don't have the "Overall/Read permission".
by VinciT
Thu May 12, 2016 6:24 pm
Forum: Plugin Development Support
Topic: Hooking FireBullets
Replies: 4
Views: 5614

Re: Hooking FireBullets

Thank you so much Ayuto. Do you happen to know the offset for TE_HL2MPFireBullets?
by VinciT
Wed May 04, 2016 4:38 pm
Forum: Plugin Development Support
Topic: Hooking FireBullets
Replies: 4
Views: 5614

Hooking FireBullets

Since HL2DM doesn't have the 'weapon_fire' event, hooking FireBullets seemed like the way to go. Here's the offset: #CHL2MP_Player::FireBullets(FireBulletsInfo_t const&) [[fire_bullets]] offset_linux = 113 offset_windows = 112 arguments = POINTER return_type = INT And here's the code: from memor...
by VinciT
Tue May 03, 2016 6:04 pm
Forum: Plugin Development Support
Topic: Getting and setting 'm_Collision.m_usSolidFlags'
Replies: 3
Views: 3304

Re: Getting and setting 'm_Collision.m_usSolidFlags'

Awesome! I'm doing this in HL2DM.
by VinciT
Tue May 03, 2016 3:57 pm
Forum: Plugin Development Support
Topic: Getting and setting 'm_Collision.m_usSolidFlags'
Replies: 3
Views: 3304

Getting and setting 'm_Collision.m_usSolidFlags'

I'm trying to get and set the 'm_Collision.m_usSolidFlags' property of an entity, but I keep getting this error: TypeError: Property 'm_Collision.m_usSolidFlags' is of type ushort not int I know, I used the wrong type. I tried using 'ushort', but it seems SP doesn't support getting/setting propertie...
by VinciT
Sat Apr 30, 2016 3:43 pm
Forum: Plugin Development Support
Topic: Changing game description
Replies: 6
Views: 5768

Re: Changing game description

Works great, thank you so much Ayuto.
by VinciT
Fri Apr 29, 2016 1:15 pm
Forum: Plugin Development Support
Topic: Changing game description
Replies: 6
Views: 5768

Re: Changing game description

Half Life 2: Deathmatch
by VinciT
Thu Apr 28, 2016 9:55 pm
Forum: Plugin Development Support
Topic: Changing game description
Replies: 6
Views: 5768

Changing game description

Is there a way to change a server's game description with SP? It's the string found in the 'Game' tab on the server browser:

Image

SourceMod has 'OnGetGameDescription' for this, is there a way to achieve the same thing with SP?
by VinciT
Wed Apr 20, 2016 10:06 pm
Forum: Plugin Requests
Topic: [HL2:DM] One Mapchange to Tdm and DM
Replies: 8
Views: 14706

Re: [HL2:DM] One Mapchange to Tdm and DM

This should do the trick:

Syntax: Select all

from listeners import OnLevelShutdown
from engines.server import queue_command_string

GAMEMODE = 0

@OnLevelShutdown
def change_gamemode():
global GAMEMODE
GAMEMODE = 1 - GAMEMODE

queue_command_string('mp_teamplay ' + str(GAMEMODE))
by VinciT
Mon Apr 18, 2016 2:16 am
Forum: Plugin Development Support
Topic: CS:GO XRay
Replies: 2
Views: 4860

Re: CS:GO XRay

There are a few SourceMod plugins that allow admins to see through walls. From what I understand, most of them basically just add another model(prop_physics_override) to the player with the same skin as the player model, and then use SetTransmit to make it visible only to the admins. They then set t...
by VinciT
Fri Apr 15, 2016 5:10 pm
Forum: Plugin Development Support
Topic: [CSGO] player.view_coordinates issue
Replies: 2
Views: 2550

Awesome, thanks Ayuto!
by VinciT
Thu Apr 14, 2016 2:57 pm
Forum: Plugin Development Support
Topic: [CSGO] player.view_coordinates issue
Replies: 2
Views: 2550

[CSGO] player.view_coordinates issue

For some reason, .view_coordinates doesn't fully follow the crosshair when it comes to looking all the way up or down, as you can see in this image: http://i.imgur.com/wQ6RgFq.png #view_coords_test.py from events import Event from players.entity import Player from players.helpers import index_from_u...

Go to advanced search