Search found 1776 matches
- Thu May 18, 2023 6:53 pm
- Forum: Plugin Requests
- Topic: Bots/AI to shooting each other when ffa is on
- Replies: 2
- Views: 18993
Re: Bots/AI to shooting each other when ffa is on
All credit goes to L'In20Cible who created this back in the EventScripts days. This is a slightly modified version of GunGame-FFA-Bots . # ============================================================================= # >> IMPORTS # ====================================================================...
- Tue May 16, 2023 11:11 pm
- Forum: Plugin Requests
- Topic: free for all
- Replies: 4
- Views: 18681
Re: free for all
Sorry, it was more for if someone wanted to write it up for you really quick, since I did not have the time. But, I have a few minutes now, so try this: # ============================================================================= # >> IMPORTS # ====================================================...
- Tue May 16, 2023 5:39 pm
- Forum: Plugin Requests
- Topic: free for all
- Replies: 4
- Views: 18681
Re: free for all
I don't have much time right now, but all you would need to do is remove the GunGame specific code from GG-FFA:
https://github.com/GunGame-Dev-Team/Gun ... /gg_ffa.py
https://github.com/GunGame-Dev-Team/Gun ... /gg_ffa.py
- Mon Apr 24, 2023 11:20 pm
- Forum: Plugin Development Support
- Topic: [CS:S/CS:GO] FTPLIB
- Replies: 2
- Views: 11876
Re: [CS:S/CS:GO] FTPLIB
If I am reading this correctly, I think both strings of {file} should be {maps} because file is an open file object.
- Tue Mar 21, 2023 5:56 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] SpawnPoints
- Replies: 7
- Views: 13785
Re: [Cs:s] SpawnPoints
Your ini file above used tx not just x.
- Mon Mar 20, 2023 5:31 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] SpawnPoints
- Replies: 7
- Views: 13785
Re: [Cs:s] SpawnPoints
First, map is a built-in function in Python, so I would avoid using it as a variable name. The issue is that you are looping through all of the keys in maps_path , which from your example is just "maps", and then trying to get maps_path['maps'][ i] where [ i] is "maps". So litera...
- Mon Dec 05, 2022 5:56 pm
- Forum: Plugin Development Support
- Topic: [CS:S] how to set team score properly?
- Replies: 3
- Views: 3288
Re: [CS:S] how to set team score properly?
Yes, those properties are for retrieving and setting data. What I did with GG-Scoreboard was stored the values in a dictionary and set the team scores on both round_start and round_end. https://github.com/satoon101/GunGame-Scoreboard/blob/master/addons/source-python/plugins/gungame/plugins/custom/gg...
- Mon Sep 12, 2022 11:42 pm
- Forum: General Discussion
- Topic: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
- Replies: 6
- Views: 6720
Re: Python 3.6 has reached it's EOL. Any plans to shift to any recent version?
Python 3.11 is supposed to have a significant speed improvement, but I don't know how much that would affect SP.
- Tue Jun 14, 2022 4:03 pm
- Forum: Plugin Development Support
- Topic: [Cs:s] Insta Bomb Defuse
- Replies: 2
- Views: 3436
Re: [Cs:s] Insta Bomb Defuse
You might have to delay it 1 tick instead of doing it directly in the event: from events import Event from entities.entity import Entity from listeners.tick import Delay @Event('bomb_begindefuse') def bomb_begindefuse(game_event): Delay(0, defuse_bomb) def defuse_bomb...
- Tue Feb 22, 2022 9:12 pm
- Forum: API Design
- Topic: Where is the source code ?
- Replies: 6
- Views: 38924
Re: Where is the source code ?
https://github.com/Source-Python-Dev-Te ... aster/src/
You can also check out the wiki:
http://wiki.sourcepython.com/
You can also check out the wiki:
http://wiki.sourcepython.com/
- Fri Feb 18, 2022 11:56 pm
- Forum: Plugin Development Support
- Topic: [HL2:DM] Entity View
- Replies: 3
- Views: 3556
Re: [HL2:DM] Entity View
I'm not sure what to tell you. It works perfectly fine when I test it.
- Sat Feb 12, 2022 12:08 am
- Forum: Plugin Requests
- Topic: HL2:DM BotChat
- Replies: 3
- Views: 3739
Re: HL2:DM BotChat
Unless I am missing something, there are no sounds with this addon. Rewriting it in SP shouldn't be too difficult, though I would definitely reformat the replies db file, probably to json format. I am a little busy this weekend, but if no one else does this, I might give it a go next week.
- Mon Jan 24, 2022 11:02 pm
- Forum: Plugin Development Support
- Topic: configobj.ConfigObjError
- Replies: 21
- Views: 22843
Re: configobj.ConfigObjError
Ok, so the issue is in the ../addons/source-python/data/plugins/lms/database.ini file on the server. Specifically on line #9 in that file.
- Mon Jan 24, 2022 6:47 pm
- Forum: Plugin Development Support
- Topic: configobj.ConfigObjError
- Replies: 21
- Views: 22843
Re: configobj.ConfigObjError
No, the issue has nothing to do with the info.ini file. In the lms.py file, there is likely a line that starts with db_path =
Could you post that line here so we can see which file is causing this error.
Could you post that line here so we can see which file is causing this error.
- Sat Jan 22, 2022 1:23 pm
- Forum: Plugin Development Support
- Topic: configobj.ConfigObjError
- Replies: 21
- Views: 22843
Re: configobj.ConfigObjError
It wouldn't be line 9 of the config.py file. There is a .ini file somewhere that it's reading where line 9 isn't valid. In your lms.py file, what is db_path set to? That path is the location of the .ini file that is causing the error.
- Sat Dec 11, 2021 2:14 pm
- Forum: Plugin Development Support
- Topic: Creating a BeamRingPoint?
- Replies: 4
- Views: 5734
Re: Creating a BeamRingPoint?
I tested your code using my suggestion, but also just using player.origin instead of player.position , and both worked fine. I did have to use a different sprite, though (I used sprites/laser.vmt , since sprites/lghtning.vmt did not work on either of my tests). What game are you testing this on? I a...
- Sat Dec 11, 2021 1:58 pm
- Forum: Plugin Requests
- Topic: HL2:DM SNOW
- Replies: 7
- Views: 5166
Re: HL2:DM SNOW
I was going to take a look at that script and see if I could adapt it for SP, but it says I don't have access.
- Sat Dec 11, 2021 1:56 pm
- Forum: Plugin Development Support
- Topic: Creating a BeamRingPoint?
- Replies: 4
- Views: 5734
Re: Creating a BeamRingPoint?
What is player.position? I think I remember having to increment the z value of the player's origin with BeamRingPoint, otherwise the effect was in the ground.
Syntax: Select all
center = player.origin
center.z += 10
te.center = center
- Fri Dec 10, 2021 11:09 pm
- Forum: Plugin Requests
- Topic: HL2:DM SNOW
- Replies: 7
- Views: 5166
Re: HL2:DM SNOW
Not that this can't be done, but I am certain there was already a thread on here where it was tried previously and we ran into issues. Just search for "snow" and I'm sure you'll find it.
- Tue Nov 09, 2021 7:07 pm
- Forum: Plugin Requests
- Topic: HL2DM-scoreboard and stats
- Replies: 39
- Views: 61003
Re: HL2DM-scoreboard and stats
Change '%a, %m.%y. %H:%M:%S' to '%a, %m.%y. %I:%M:%S%p'
If you don't want the AM/PM, remove the %p at the end.
For reference: https://docs.python.org/3/library/time. ... e.strftime
If you don't want the AM/PM, remove the %p at the end.
For reference: https://docs.python.org/3/library/time. ... e.strftime