Search found 197 matches

by Tuck
Sun Dec 09, 2012 8:19 pm
Forum: Plugin Development Support
Topic: edict_t.GetKeyValue() problem
Replies: 6
Views: 6468

i think it's because im not doing it like that but im "creating/getting" a new edict_t before getting it ?

basicly in player jump u set it and in player_say i would receieve it for example
by Tuck
Sun Dec 09, 2012 7:17 pm
Forum: Plugin Development Support
Topic: edict_t.GetKeyValue() problem
Replies: 6
Views: 6468

edict_t.GetKeyValue() problem

i can set the keyvalue 'gravity' with out any problem and it works perfectly but when i want to get the value but i get 0.0 when infacts it's no where near that value..

Engine bug or source python problem ?
by Tuck
Sun Dec 09, 2012 6:03 pm
Forum: Plugin Development Support
Topic: Damaging player via point_hurt
Replies: 6
Views: 6798

Hey Tuck, Setting the player health to 0 doesn't actually kill the player → it just makes the server crazy. You need to kill him. Your best bet for now is to sigscan CCSPlayer::CommitSuicide to kill him. I'd like to sigscan it for you but... I can't... :o Also, this topic is kinda a double of...
by Tuck
Sun Dec 09, 2012 1:25 pm
Forum: Plugin Development Support
Topic: Damaging player via point_hurt
Replies: 6
Views: 6798

Doesn't look like anybody knows how to do this so another question would be for the devs, when can it be added i've been wanting this before client filtering and as i see it, it's easier todo then client command filtering ?
by Tuck
Thu Dec 06, 2012 6:47 pm
Forum: Plugin Development Support
Topic: Damaging player via point_hurt
Replies: 6
Views: 6798

Damaging player via point_hurt

Is this being worked on the - player.health is kinda rather buggy to use since it can crash clients if he is set to be on zero health :/

If it has already been added please post an example need this feature :P
by Tuck
Thu Dec 06, 2012 4:14 pm
Forum: Plugin Development Support
Topic: es.getmaxplayercount() equivalent
Replies: 3
Views: 4629

Here you go (copied from addons\source-python\_libs\players\entity.py):


Syntax: Select all

GameEngine.GetClientConVarValue(self.info, 'cl_language')
by Tuck
Wed Dec 05, 2012 8:16 pm
Forum: Plugin Development Support
Topic: UserMessage Menu
Replies: 15
Views: 13233

No you can't force a client to bind a key. And I doubt you can get which command is bound to it since the server doesn't have to know that directly so well, why sending more data than needed? Not sure if it works on CSGO but on CSS, you can print them into a hudhint message. In example: Press %+jum...
by Tuck
Wed Dec 05, 2012 7:49 pm
Forum: Plugin Development Support
Topic: UserMessage Menu
Replies: 15
Views: 13233

L'In20Cible wrote:Again, they are client-side. It send the command based on the radio message to the server (in example, "go", "backup", etc.).

L'In20Cible


Is it possible to force client to bind a key?

and would it be possible to retrieve what client has a bound a key to :/
by Tuck
Wed Dec 05, 2012 7:35 pm
Forum: Plugin Development Support
Topic: UserMessage Menu
Replies: 15
Views: 13233

ye i though it over after i posted and tried doing range(1, 11) worked perfectly fine :P thanks

However the radio menus used for doing ingame sounds suchas need backup blah blah.. 0 is used to close in them ?
by Tuck
Wed Dec 05, 2012 7:20 pm
Forum: Plugin Development Support
Topic: UserMessage Menu
Replies: 15
Views: 13233

L'In20Cible wrote:Anyways, Ayuto's function is wrong. It should be:[python]def keysToBits(keys):
return sum((1 << (x - 1) for x in set(keys)))[/python]Where "0" need to be handled as "10".

L'In20Cible


Yours chrashes the server? last thing i see is: negative shift count
by Tuck
Wed Dec 05, 2012 4:07 pm
Forum: Plugin Development Support
Topic: Players transparency
Replies: 12
Views: 10671

did not work @L'In20Cible
by Tuck
Wed Dec 05, 2012 4:31 am
Forum: Plugin Development Support
Topic: Players transparency
Replies: 12
Views: 10671

The issue with that is that if you need them multiple times, you end up wasting the time to retrieve them. If you are not worried about any minimal speed difference, then I really don't see what the issue would be with storing those values on instanciation. Also, we require the index to get an inst...
by Tuck
Wed Dec 05, 2012 4:16 am
Forum: Plugin Development Support
Topic: Players transparency
Replies: 12
Views: 10671

basicly i only use IPlayerInfo in almost all the cases so basicly i have edict_t as None i only retrieve edict_t if i need it, i'm also storing cached sql database information about user inside it Basicly i felt it was cleaner to take the "engine/source-python" types and only retrieving them if i ne...
by Tuck
Wed Dec 05, 2012 4:06 am
Forum: Plugin Development Support
Topic: Players transparency
Replies: 12
Views: 10671

def getColor(user): if not user.entity: user.entity = Player.EdictOfPlayer(user.IPlayerInfo) color = user.entity.GetPropInt('CBaseEntity.m_clrRender') return tuple(int(x) for x in (color & 0xff, (color & 0xff00) >> 8, (color & ...
by Tuck
Tue Dec 04, 2012 7:20 pm
Forum: Plugin Development Support
Topic: UserMessage Menu
Replies: 15
Views: 13233

L'In20Cible wrote:Hey Tuck,

Sadly, this is not available on CS:GO.

L'In20Cible


if it's default bound to some kinda "weapon_slot" couldn't i just listen to that so it would work for users with standard weapon slots :/
by Tuck
Tue Dec 04, 2012 6:36 pm
Forum: Plugin Development Support
Topic: UserMessage Menu
Replies: 15
Views: 13233

how do i catch player hitting 0 ? :/ tried range(1, 11) and range(11) nothing :/

edit, im listening to menuselect via ClientCMD, using your example of setting the SHORT i can catch the keys 1-9 however cannot catch 0 ;(
by Tuck
Tue Dec 04, 2012 3:07 pm
Forum: General Discussion
Topic: Performace like ES2 or SourcePawn
Replies: 5
Views: 6513

Since the plugin is still in development, and many things still need to be added to both the C++ side and Python side, it would be almost pointless to have a highlighter. For now, simply use the Python highlighter, as it should suffice. If someone wants to make a basic highlighter, we can try to ke...
by Tuck
Sun Dec 02, 2012 9:36 pm
Forum: Plugin Development Support
Topic: Players transparency
Replies: 12
Views: 10671

Players transparency

Okay so back on the "old" forums i posted a request for this to be fixed/discovered I cannot set players transparency in csgo the way css does it, i think it has something to do with we have to set RenderMode but i cannot seem to find any information about rendermode, tried to debug it but...
by Tuck
Sun Dec 02, 2012 8:23 pm
Forum: Plugin Development Support
Topic: UserMessage Menu
Replies: 15
Views: 13233

UserMessage Menu

for some reason i can only hit option 1 in menu...... UserMessage = GameEngine.UserMessageBegin(Recipients, 10, None) UserMessage.WriteShort(1) UserMessage.WriteByte(2) UserMessage.WriteByte(0) UserMessage.WriteString(text) GameEngine.MessageEnd() when i change the highlighted i can choose more opti...
by Tuck
Sun Dec 02, 2012 10:03 am
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 124318

weapon_pointer = SignatureDictionary['GiveNamedItem'](pointer, 'weapon_awp', 0, True)

Error: signature object is not callable

figured it by reading signature from libs

Syntax: Select all

addr = SignatureDictionary['GiveNamedItem']
addr.call_function(pointer, item, 0, True)

Go to advanced search