Search found 53 matches

by MrMalina
Sat Apr 11, 2015 8:52 pm
Forum: Plugin Development Support
Topic: CS:GO: tick_delays
Replies: 2
Views: 2416

CS:GO: tick_delays

I used the following code in the CSS and CSGO:

Syntax: Select all

from listeners.tick import tick_delays

def load():

print("test")

tick_delays.delay(1, load)


In cs:s:
css.jpg


In cs:go
css.jpg


This is a bug, or so conceived?
by MrMalina
Sat Apr 11, 2015 9:46 am
Forum: Plugin Development Support
Topic: Cs:go signatures
Replies: 6
Views: 4846

I tried to do it, but because the server can not be a player ,i added the bot through bot_manager.create_bot("ponyawka"), but it server crash. players = tuple(PlayerIter(return_types="player")) if players: a = players[0].bump_weapon else: from players.bots import ...
by MrMalina
Sat Apr 11, 2015 9:06 am
Forum: Plugin Development Support
Topic: Cs:go signatures
Replies: 6
Views: 4846

Cs:go signatures

How do I get CBasePlayer::BumpWeapon and CBaseCombatCharacter::OnTakeDamage signatures for cs: go?
by MrMalina
Thu Apr 09, 2015 6:17 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17836

When using this code, when you deal damage, the player at the beginning of dying himself, and then he dies from a player. code: def damage(victim_index, attacker_index, damage=-1, damage_type=DamageTypes.FALL): victim = BaseEntity(victim_index) if damage == -1: damage = 2**16 victim....
by MrMalina
Tue Apr 07, 2015 6:32 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17836

I'm using the latest version of the source python (April 4). If you use the following code, I have an error. @Event def player_jump(args): index=index_from_userid(args.get_int("userid")) player=PlayerEntity(index) player.damage(5, DamageTypes.BULLET)...
by MrMalina
Tue Apr 07, 2015 5:00 pm
Forum: Plugin Development Support
Topic: point_hurt: cs go
Replies: 28
Views: 17836

point_hurt: cs go

I use the following code to damage: @Event def player_jump(args): index=index_from_userid(args.get_int("userid")) player=PlayerEntity(index) player.add_output("targetname Nyan") point = BaseEntity(create_entity("point_hurt"...
by MrMalina
Sat Mar 14, 2015 4:13 pm
Forum: Plugin Development Support
Topic: BumpWeapon
Replies: 9
Views: 6210

I restarted the server after a couple of falls and it worked : / Thank you.
by MrMalina
Sat Mar 14, 2015 4:00 pm
Forum: Plugin Development Support
Topic: BumpWeapon
Replies: 9
Views: 6210

How further to learn, what arguments to use? This code gives me the same error: # ============================================================================= # >> IMPORTS # ============================================================================= # Memory import memory from memory import DataT...
by MrMalina
Sat Mar 14, 2015 3:53 pm
Forum: Plugin Development Support
Topic: BumpWeapon
Replies: 9
Views: 6210

Syntax: Select all

from players.helpers import index_from_pointer
by MrMalina
Sat Mar 14, 2015 3:25 pm
Forum: Plugin Development Support
Topic: BumpWeapon
Replies: 9
Views: 6210

BumpWeapon

I use this code: # ============================================================================= # >> IMPORTS # ============================================================================= # Memory import memory from memory import DataType from memory import Convention from memory.hooks import PreH...
by MrMalina
Sat Mar 07, 2015 3:40 pm
Forum: Plugin Development Support
Topic: PreHook: player_hurt
Replies: 2
Views: 2517

PreHook: player_hurt

I needed to get event pre player_hurt. From the examples on the site I was able to make it up: # ============================================================================= # >> IMPORTS # ============================================================================= import memory from memory import...
by MrMalina
Fri Mar 06, 2015 3:41 pm
Forum: Plugin Development Support
Topic: damage inflicted
Replies: 4
Views: 3613

I wanted to deal damage some other players, not yourself. I got to put it this code. Suddenly, someone will need: # ====================================================================== # >> IMPORTS # ====================================================================== from random import choice #...
by MrMalina
Thu Mar 05, 2015 1:56 pm
Forum: Plugin Development Support
Topic: damage inflicted
Replies: 4
Views: 3613

damage inflicted

I just wanted to cause damage user. For this I used the code: aplayer.damage (uplayer.index, 500) I got an error: first_error.jpg I changed the code to: aplayer.damage (uplayer.index, 500, damage_types.FALL) Get an error: second_error.jpg I changed the code to: index = tuple (apl...

Go to advanced search