Feature Requests

Official Announcements about Source.Python.
User avatar
L'In20Cible
Project Leader
Posts: 932
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Sat Mar 07, 2015 8:26 pm

Yes, movetype is accessible for every entity that inheriths of CBaseEntity.
User avatar
velocity
Member
Posts: 52
Joined: Sat May 10, 2014 6:17 pm

Postby velocity » Sun Mar 08, 2015 5:17 pm

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.
User avatar
satoon101
Project Leader
Posts: 2384
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sun Mar 08, 2015 5:24 pm

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.
Image
User avatar
velocity
Member
Posts: 52
Joined: Sat May 10, 2014 6:17 pm

Postby velocity » Sun Mar 08, 2015 5:40 pm

Well I guess that's what, i'm requesting then! Clan tag pointer and my forum messages are totally bugging right now... O.o
User avatar
satoon101
Project Leader
Posts: 2384
Joined: Sat Jul 07, 2012 1:59 am

Postby satoon101 » Sun Mar 08, 2015 6:08 pm

I have the clan tag working locally for CS:S. I will push that change here soon.
Image
stonedegg
Senior Member
Posts: 141
Joined: Sun Aug 12, 2012 11:45 am

Postby stonedegg » Tue Apr 07, 2015 11:42 am

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?
User avatar
L'In20Cible
Project Leader
Posts: 932
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Tue Apr 07, 2015 3:00 pm

A userid can also be an index pointing to a different player.
stonedegg
Senior Member
Posts: 141
Joined: Sun Aug 12, 2012 11:45 am

Postby stonedegg » Tue Apr 07, 2015 4:32 pm

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.
User avatar
L'In20Cible
Project Leader
Posts: 932
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Tue Apr 07, 2015 5:06 pm

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.

Return to “News & Announcements”

Who is online

Users browsing this forum: No registered users and 1 guest