Search found 262 matches
- Wed Jun 20, 2018 4:29 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Team Names
- Replies: 14
- Views: 24627
Re: [HL2:DM] Team Names
So I think this should work (and make use of Satoons tips): from players.entity import Player from events import Event from filters.players import PlayerIter from filters.entities import EntityIter from entities.entity import Entity import operator from cvars import ConVar from commands.client impor...
- Wed Jun 20, 2018 10:41 am
- Forum: Plugin Requests
- Topic: [HL2:DM] Team Names
- Replies: 14
- Views: 24627
Re: [HL2:DM] Team Names
Painkiller you need to adjust the
Part and add the names you want there.
Like:
Syntax: Select all
combine_name = "Combine"
rebels_name = "Rebels"
spectator_name = "Spectator"
Part and add the names you want there.
Like:
Syntax: Select all
combine_name = "Painkiller"
rebels_name = "No noobs"
spectator_name = "Noobs"
- Wed Jun 20, 2018 4:14 am
- Forum: Plugin Requests
- Topic: [HL2:DM] Team Names
- Replies: 14
- Views: 24627
Re: [HL2:DM] Team Names
Thank you satoon, I will try those Things later. The OnLevelInit does Not Work though. I used that before, but team_managers property team_name seems to be Set a little bit later and is empty in that listener.
That is why I used that delay in the OnEntityCreated listener too.
That is why I used that delay in the OnEntityCreated listener too.
- Tue Jun 19, 2018 7:07 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Team Names
- Replies: 14
- Views: 24627
Re: [HL2:DM] Team Names
Well you could always try and learn something new. That would propably make it easier for you to get things done. Here is what you wanted, I hope it's okay that way as I do not plan to add anything more to it if you are not at least willing to try to understand whats done here. This combines the 3 t...
- Tue Jun 19, 2018 6:21 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Team Names
- Replies: 14
- Views: 24627
Re: [HL2:DM] Team Names
from events import Event import os from filters.entities import EntityIter for ent in EntityIter('team_manager'): team_name = ent.get_property_string('m_szTeamname') teams = "Test" ent.set_property_string("m_szTeamname","Test") T...
- Tue Jun 19, 2018 5:57 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] Team Names
- Replies: 14
- Views: 24627
Re: [HL2:DM] Team Names
This is a mod for CS:GO.
Half Life 2 Deathmatch does not have the cvars mp_teamname_1 and mp_teamname_2.
Half Life 2 Deathmatch does not have the cvars mp_teamname_1 and mp_teamname_2.
- Tue Jun 19, 2018 4:48 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
Thank you satoon for pointing that out to me! This version will remember which team you are on after mapchange (also it does not kill you on team change anymore, just respawns you) from players.entity import Player from events import Event from filters.players import PlayerIter import operator from ...
- Tue Jun 19, 2018 2:02 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
This is a version with ESC Menu. The plugin now works like this: When you join you will be assigned to the team with the lowest players and you are sent an ESC Menu too. Then you have the option to write !team in the chat to open up the ESC Menu again. You can also still use jointeam if you want fro...
- Tue Jun 19, 2018 1:27 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
from players.entity import Player from events import Event from filters.players import PlayerIter import operator from cvars import ConVar from commands.client import ClientCommand from commands import CommandReturn from messages import SayText2 import random count = {} @Event('player_activ...
- Tue Jun 19, 2018 1:06 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
This will take care of the jointeam problem: Now can use 4 teams. jointeam 0 = Team Unassigned jointeam 1 = Team Spectator jointeam 2 = Team Combine jointeam 3 = Team Rebel from players.entity import Player from events import Event from filters.players import PlayerIter import operator from cvars im...
- Tue Jun 19, 2018 12:12 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
My Plugin does Not interfere with jointeam so that might be why it does Not Work.
- Tue Jun 19, 2018 4:30 am
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
You will not See the spectator Team until someone is in it.
- Mon Jun 18, 2018 7:26 pm
- Forum: Plugin Development Support
- Topic: Is it possible to control the spectate camera?
- Replies: 11
- Views: 20834
Re: Is it possible to control the spectate camera?
Hey, I'm not sure if you mean a player beeing on spectator or if you mean the SourceTV specators. In case you mean the spectating players that are on the server you can do things like this: from players.entity import Player from events import Event from players.helpers import inthandle_from_userid i...
- Mon Jun 18, 2018 7:00 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
The team is playable for me: http://i65.tinypic.com/35l6jol.jpg And what about choosing teams. In an ESC menu or how? I just saw how to cut some lines too: from players.entity import Player from events import Event from filters.players import PlayerIter import operator from cvars import ConVar count...
- Mon Jun 18, 2018 6:03 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
There is no team to see. The plugin will check how many players are on each team and the one with the lowest players will be chosen for new players. So if Team Rebel has 2 players, Team Combine has 2 players and Team Spectators has 1, then you will be assigned to Team spectator. I'm not sure what el...
- Fri Jun 15, 2018 11:12 pm
- Forum: Plugin Requests
- Topic: [Hldms] Entity remover, to remove "doubles"
- Replies: 7
- Views: 17986
Re: [Hldms] Entity remover, to remove "doubles"
I think Half Life Deathmatch - Source is not supported by SourcePython currently. Edit: I tried to write an Eventscripts plugin to do what you want: import es import corelib import gamethread ent_dict = {} remove_list = {} def es_map_start(ev): gamethread.delayed(1.0,do_it) def do_it...
- Thu Jun 14, 2018 6:17 pm
- Forum: Plugin Requests
- Topic: [HL2:DM] 3 Teams
- Replies: 36
- Views: 65864
Re: [HL2:DM] 3 Teams
from players.entity import Player from events import Event from filters.players import PlayerIter import operator from cvars import ConVar count = {} @Event('player_activate') def player_connect(ev): teamplay = ConVar('mp_teamplay').get_int() if teamp...
- Mon Jun 04, 2018 6:18 pm
- Forum: Plugin Development Support
- Topic: Strange Convar.set_int behavior
- Replies: 2
- Views: 6701
Strange Convar.set_int behavior
Hey guys, I'm using this code to initialize server variables from a txt file: import os from cvars import ConVar def get_addon_path(): path = os.path.dirname(os.path.abspath(__file__)) return path path = get_addon_path()+"/svar/svar.txt" file = open(path...
- Fri May 04, 2018 8:52 pm
- Forum: Plugin Development Support
- Topic: Remove Weapon on Disconnect
- Replies: 3
- Views: 6961
Re: Remove Weapon on Disconnect
Found a small typo I think.
results in an TypeError.
It should be player.weapons() I think
Syntax: Select all
for weapon in player.weapons:
weapon.remove()
results in an TypeError.
It should be player.weapons() I think
- Tue Apr 17, 2018 4:26 pm
- Forum: General Discussion
- Topic: Download only bz2 files without checking for the orig.
- Replies: 6
- Views: 13282
Re: Download only bz2 files without checking for the orig.
If you connect and See vtf and vmt Files beeing downloaded (everytime you Join) that means those are Missing from the Download Location. For example: you add test.vtf to your Downloadables. Now the client Looks for the download and cannot find it. If all Files are downloaded correctly you should Not...