Search found 1256 matches

by L'In20Cible
Fri May 12, 2023 4:26 pm
Forum: General Discussion
Topic: Cant load csgo server because unknown command "sp" and more
Replies: 6
Views: 11165

Re: Cant load csgo server because unknown command "sp" and more

Launch your server with +developer 1. This should generate debug messages providing more details about why it fails to properly load.
by L'In20Cible
Fri May 12, 2023 4:25 pm
Forum: Plugin Development Support
Topic: Call AddLayeredSequence
Replies: 5
Views: 15451

Re: Call AddLayeredSequence

rovizon wrote:prop_dynamic_override

This entity does not inherit from CBaseAnimatingOverlay.
by L'In20Cible
Wed Mar 22, 2023 3:15 am
Forum: Plugin Development Support
Topic: [CS:GO] GetBoneTransform
Replies: 4
Views: 7212

Re: [CS:GO] GetBoneTransform

(i tried 207 to 211 and then stopped). You stopped too early! I believe it's 214 on Windows and 215 on Linux. EDIT: Yup, it looks right. from core import PLATFORM from core.cache import cached_property from entities.entity import Entity from memory import Convention from memory import DataType from...
by L'In20Cible
Tue Mar 21, 2023 8:36 pm
Forum: Plugin Development Support
Topic: [CS:GO] GetBoneTransform
Replies: 4
Views: 7212

Re: [CS:GO] GetBoneTransform

cobana wrote:So my first guess is, that my code does not work because i got the wrong offset. How would one find the correct offset?
Easiest way would probably be to test increment the offset until you get results that make sense.
by L'In20Cible
Tue Mar 21, 2023 7:06 pm
Forum: Plugin Development Support
Topic: [Cs:s] SpawnPoints
Replies: 7
Views: 10857

Re: [Cs:s] SpawnPoints

Didn't think of use ConfigFile, does it create de_dust2.txt automatically or do i need to create de_dust2.txt manually? It should simply return an empty list if the file is missing but, it will currently produce an error because I forgot to import CFG_PATH . For now, you can just catch NameError to...
by L'In20Cible
Tue Mar 21, 2023 7:03 pm
Forum: Plugin Development Support
Topic: [Cs:s] SpawnPoints
Replies: 7
Views: 10857

Re: [Cs:s] SpawnPoints

How i can use ConfigFile to separate spawn points for terrorist and counter-terrorist? While a bit repetitive, you could define the classname as first argument. For example: from core import ConfigFile from engines.server import global_vars from mathlib import Vector from path import Path for spawn...
by L'In20Cible
Tue Mar 21, 2023 6:12 pm
Forum: Plugin Development Support
Topic: [Cs:s] SpawnPoints
Replies: 7
Views: 10857

Re: [Cs:s] SpawnPoints

[maps] [[de_dust2]] [[1]] tx = "0" ty = "0" tz = "0" Nested sections must match their brackets. In that file, 1 is under maps , not under maps[de_dust2] . That said, the maps section itself is rather redundant. EDIT: What about ConfigFile instead? from core import Conf...
by L'In20Cible
Sun Mar 19, 2023 4:45 am
Forum: Plugin Development Support
Topic: [CS:S] how to create a buyzone
Replies: 8
Views: 8532

Re: [CS:S] how to create a buyzone

I don't understand why I can set a bsp file as model, but it works, though. The map is technically a brush model as can be seen in the model table: from stringtables import string_tables for string in string_tables.modelprecache: print(string) """ maps/de_dust2.bsp *1 *2 *3 *...
by L'In20Cible
Sat Mar 18, 2023 4:22 pm
Forum: Plugin Development Support
Topic: [CS:S] how to create a buyzone
Replies: 8
Views: 8532

Re: [CS:S] how to create a buyzone

Do you know whether these existing brushes can be resized or do I have to deal with their current size? As well as cloning them would be an option. You can scale them with the mins/maxs. But they keep the same shape. For example, a brush could look like this: https://i.imgur.com/kM0V5lr.png Or any ...
by L'In20Cible
Sat Mar 18, 2023 3:39 pm
Forum: Plugin Development Support
Topic: [CS:S] how to create a buyzone
Replies: 8
Views: 8532

Re: [CS:S] how to create a buyzone

Regarding the "brush" entities: Do you mean by having a brush model that I first have to create a brush entity and link the buy_zone to it? Have already looked on how the Hammer editor is creating the buy_zones but couldn't figure it out on how to do chat programmatically. You can't reall...
by L'In20Cible
Sat Mar 18, 2023 2:37 pm
Forum: Plugin Development Support
Topic: [CS:S] how to create a buyzone
Replies: 8
Views: 8532

Re: [CS:S] how to create a buyzone

On CS:S, buy-zones are "brush" entities. Therefore, they require a brush model. It's possible to create them, but it really doesn't worth the effort. The easiest way is to just tell the clients they are in a buy-zone using a post_think hook. For example, the following allows players to buy...
by L'In20Cible
Thu Mar 16, 2023 8:09 am
Forum: Plugin Development Support
Topic: [Cs:s] Players Chat
Replies: 3
Views: 7068

Re: [Cs:s] Players Chat

Is there anything else that can improve of the SayFilter code? A lot could be said about your current code, but I won't expand upon it because I don't think a SayFilter is appropriate for the purpose of adding titles to players. I would rather recommend you use a SayText2 hook and override the form...
by L'In20Cible
Wed Mar 15, 2023 10:05 am
Forum: Plugin Development Support
Topic: [Cs:s] Players Chat
Replies: 3
Views: 7068

Re: [Cs:s] Players Chat

Into the following line: return ratinghandler.modified_chat(name, rpglib.getTeam(userid), stattrack.get_player_rating(userid), command[0] + ' ' + args, text) This: command[0] + ' ' + args Should be: command.command_string The engine's tokenizer does not work w...
by L'In20Cible
Mon Dec 05, 2022 7:10 pm
Forum: Plugin Development Support
Topic: [CS:S] how to set team score properly?
Replies: 3
Views: 2636

Re: [CS:S] how to set team score properly?

The scores themselves are stored into the game rules, not the team managers. The later are only used as reflection for client-side scoreboard. The easiest way, without using hard-coded offsets, would be to use a game_score entity: from entities.dictionary import SyncedEntityDictionary from entities....
by L'In20Cible
Sun Nov 27, 2022 9:43 pm
Forum: Plugin Development Support
Topic: [CS:S] how to change player model pose/animation?
Replies: 2
Views: 1758

Re: [CS:S] how to change player model pose/animation?

I have looked into sourcemod stuff but do not quite understand them to have a solution for Source.Python. There are parameters like m_flPoseParameter which should be able to control a model and move it ( see alliedmods.net ) so there is maybe something to change the model arms position. → https://f...
by L'In20Cible
Sun Nov 06, 2022 11:21 am
Forum: Plugin Development Support
Topic: [Cs:s] How to hook weapon reload
Replies: 2
Views: 2178

Re: [Cs:s] How to hook weapon reload

The first problem is that you are effectively hooking CBaseCombatCharacter::RemovePlayerItem because your hook targets players, not weapons. To target weapons, you would have to change your condition to: lambda entity: entity.is_weapon() However, Reload is virtual and each weapon entity impl...
by L'In20Cible
Sun Oct 16, 2022 4:30 am
Forum: Plugin Development Support
Topic: [Cs:s] How to block kill command in console
Replies: 3
Views: 3396

Re: [Cs:s] How to block kill command in console

kill is technically a server command, not a client one. Using ServerCommand should work. However, you cannot access the index of the player issuing it because GetCommandIndex don't seem to be currently exported to Python. EDIT: GetCommandIndex has been exported as commands.get_command_index into 34...
by L'In20Cible
Fri Sep 23, 2022 2:37 am
Forum: Plugin Development Support
Topic: TF2 Event Win Reasons
Replies: 4
Views: 1995

Re: TF2 Event Win Reasons

You can find the enumeration declaration in the SDK. However, I'm not sure how up-to-date it is, nor if it is complete. The translations files usually have the whole list that allows you to compare the index with the message, etc.

Go to advanced search