Page 2 of 2

Posted: Sat Mar 07, 2015 8:26 pm
by L'In20Cible
Yes, movetype is accessible for every entity that inheriths of CBaseEntity.

Posted: Sun Mar 08, 2015 5:17 pm
by velocity
Hi, it would awesome if the features from Source Python Extensions (SPE) will be impliemented in Source Python, such as changing (Player Score, Clan Tag) and I don't know if you can do this already but making player tags such as [<Tag>] Name: Hello there.

Posted: Sun Mar 08, 2015 5:24 pm
by satoon101
Those are already available. For player score, just use the PlayerEntity 'kills' attribute:

Syntax: Select all

# Get a player's kills
<variable> = PlayerEntity(<index>).kills

# Set a player's kills
PlayerEntity(<index>).kills = <value>

The others are possible too, but aren't directly implemented. The clan tag will be implemented at some point for CS:S and CS:GO, but have not yet been.

For the player tags, just use a SayFilter, print out your own message with SayText2 and return False to block the original message. You can also probably hook SayText2 from sending and change the text, but I am not 100% sure how to do that currently.

Posted: Sun Mar 08, 2015 5:40 pm
by velocity
Well I guess that's what, i'm requesting then! Clan tag pointer and my forum messages are totally bugging right now... O.o

Posted: Sun Mar 08, 2015 6:08 pm
by satoon101
I have the clan tag working locally for CS:S. I will push that change here soon.

Posted: Tue Apr 07, 2015 11:42 am
by stonedegg
Is there any way yet we can mute players? If not, how about adding that to PlayerEntity?
I was thinking about something like this:

Syntax: Select all

PlayerEntity.mute() # mute this player to all players
PlayerEntity.mute(<userid/index>) # mute this player to a specific player by userid or index
PlayerEntity.mute([<userid/index>, <userid/index>]) # same above but working with lists

And maybe even add arguments like #dead, #alive or #t, etc.
What do you think about that?

Posted: Tue Apr 07, 2015 3:00 pm
by L'In20Cible
A userid can also be an index pointing to a different player.

Posted: Tue Apr 07, 2015 4:32 pm
by stonedegg
Yea, it was just an example. Using the index as parameter would be probably better.
It was probably misunderstanding, it's not like I wanted index AND userid as a possible parameter, more like one of them. It doesn't really matter to me which one.

Posted: Tue Apr 07, 2015 5:06 pm
by L'In20Cible
Yeah, that is how I interpreted it so that is why I replied that short answer from my phone. However, the IVoiceServer (from memory) is certainly something we need to get exported. However, I'm not sure if the PlayerEntity class itself should handle the work to hook and manage muted players.