Search found 148 matches

by 8guawong
Tue Dec 16, 2014 5:56 am
Forum: Plugin Development Support
Topic: how to draw a circle that stays on?
Replies: 3
Views: 499

The 'life' argument is the one that you need to change. That argument is the number of seconds for the effect to last. that only makes the circle expand slower i just want a circle with the same radius not an expanding circle with difference radius startframe=255, framerate=255, life=5, width=5, sp...
by 8guawong
Tue Dec 16, 2014 4:47 am
Forum: Plugin Development Support
Topic: how to draw a circle that stays on?
Replies: 3
Views: 499

how to draw a circle that stays on?

temp_entities.beam_ring_point(RecipientFilter(index), 0, center, start_radius, end_radius, model_index, halo_index, startframe, framerate, life, width, spread, amplitude, red, green, blue, alpha, speed, flags ) this draws a circle then expand then disappears but i want a circle that...
by 8guawong
Fri Dec 05, 2014 4:08 pm
Forum: Plugin Development Support
Topic: repeat not stopping
Replies: 0
Views: 281

repeat not stopping

from engines.server import engine_server from listeners import LevelInit from random import choice from path import Path from listeners.tick import TickRepeat from listeners.tick import TickRepeatStatus import core map_list = [] def load(): base_path = Path(__file__).parent with ope...
by 8guawong
Fri Dec 05, 2014 3:32 pm
Forum: Plugin Development Support
Topic: how would i script this in SP??
Replies: 2
Views: 486

how would i script this in SP??

DispatchKeyValue(sprite, "classname", "env_sprite_oriented"); DispatchKeyValue(sprite, "spawnflags", "1"); DispatchKeyValue(sprite, "scale", "0.3"); DispatchKeyValue(sprite, "rendermode", "1"); DispatchKeyValue(sprite, ...
by 8guawong
Thu Dec 04, 2014 4:33 am
Forum: General Discussion
Topic: How to tell how much precache table has been used for csgo???
Replies: 7
Views: 1294

ohhhhh thx :cool:
by 8guawong
Wed Dec 03, 2014 8:49 am
Forum: General Discussion
Topic: How to tell how much precache table has been used for csgo???
Replies: 7
Views: 1294

quick question is stringtable freed up after map change??? i get different value on each map test.py from listeners import LevelInit models = ['models/player/tm_phoenix.mdl', 'models/player/tm_pirate.mdl'] model_index = {} @LevelInit def my_level_init_function(mapname): for x...
by 8guawong
Wed Dec 03, 2014 2:57 am
Forum: Plugin Development Support
Topic: Import variable from plugin a to plugin b
Replies: 6
Views: 823

ok this is very weird sp load test [SP] Loading plugin 'test'... [SP] Successfully loaded plugin 'test'. sp load test2 30 [SP] Loading plugin 'test2'... [SP] Successfully loaded plugin 'test2'. sp unload test [SP] Unloading plugin 'test'... [SP] Successfully unloaded plugin 'test'. sp unload test2 [...
by 8guawong
Wed Dec 03, 2014 2:10 am
Forum: Plugin Development Support
Topic: Import variable from plugin a to plugin b
Replies: 6
Views: 823

from plugin1.plugin1 import variable this does not work from _core.command import SPPluginManager test = SPPluginManager.get_plugin_instance('plugin1') variable = test.globals['variable'] don't work either (probably b/c i have newer version) test.py x = 30 test2.py from test...
by 8guawong
Wed Dec 03, 2014 1:54 am
Forum: General Discussion
Topic: How to tell how much precache table has been used for csgo???
Replies: 7
Views: 1294

ah sorry didn't notice that i have current_map
looking foward to new build
by 8guawong
Tue Dec 02, 2014 2:55 pm
Forum: General Discussion
Topic: How to tell how much precache table has been used for csgo???
Replies: 7
Views: 1294

This will tell you the current number of entries in the modelprecache string table. from stringtables import string_tables print(len(string_tables.modelprecache)) But I would suggest you to use the Model class. http://forums.sourcepython.com/showthread.php?643-3-new-classes-%28Model...
by 8guawong
Tue Dec 02, 2014 11:14 am
Forum: General Discussion
Topic: How to tell how much precache table has been used for csgo???
Replies: 7
Views: 1294

How to tell how much precache table has been used for csgo???

i got this error Host_Error: CVEngineServer::PrecacheModel: overflow, too many models the code from listeners import LevelInit from engines.server import engine_servert models = ['models/player/tm_phoenix.mdl', 'models/player/tm_pirate.mdl'] model_index = {} current_map = '' ...
by 8guawong
Tue Dec 02, 2014 9:13 am
Forum: Plugin Development Support
Topic: how to import vairable from another script??
Replies: 2
Views: 327

satoon101 wrote:I think this has been asked before:
http://forums.sourcepython.com/showthread.php?473&p=2212&viewfull=1#post2212


thanks
by 8guawong
Tue Dec 02, 2014 3:17 am
Forum: Plugin Development Support
Topic: how to import vairable from another script??
Replies: 2
Views: 327

how to import vairable from another script??

addons/source-python/plugins/test/test.py

Syntax: Select all

x = 30


addons/source-python/plugins/test2/test2.py

Syntax: Select all

from test import x


def load():
print(x)
by 8guawong
Mon Dec 01, 2014 10:39 pm
Forum: API Design
Topic: Downloadables
Replies: 11
Views: 2169

ah ok thanks now i get it :)
by 8guawong
Mon Dec 01, 2014 10:23 pm
Forum: API Design
Topic: Downloadables
Replies: 11
Views: 2169

so there is no need of the ' ' mark??
if i just want to download 1 file

Syntax: Select all

downloads.add(materials/models/test.vmt)
is ok as well???

vs.

Syntax: Select all

downloads.add('materials/models/test.vmt')
i
by 8guawong
Mon Dec 01, 2014 10:10 pm
Forum: API Design
Topic: Downloadables
Replies: 11
Views: 2169

lol sorry tired as hell :)
didn't notice d1 and dl :o
by 8guawong
Mon Dec 01, 2014 8:47 pm
Forum: API Design
Topic: Downloadables
Replies: 11
Views: 2169

how do you add a list of file to the Downloadables?? from stringtables.downloads import Downloadables import os.path from path import Path dl = Downloadables() base_path = Path(__file__).parent with open(base_path + '/models.txt', 'r') as open_model_file: for ...
by 8guawong
Mon Dec 01, 2014 3:17 pm
Forum: Plugin Development Support
Topic: can we set the arm model for csgo??
Replies: 1
Views: 362

can we set the arm model for csgo??

can we set the arm model for csgo??

http://csgo.gamebanana.com/skins/133419

comes with arm/hand model but not sure how to use it
by 8guawong
Mon Dec 01, 2014 12:29 am
Forum: Code examples / Cookbook
Topic: A simple credit plugin
Replies: 4
Views: 1210

thanks for the comment
fixed the store_repeat and passing userid getting steamid useless crap
i copied the code from store plugin i was doing

not very good with programming so don't know about other stuff you said i.e. class.. context.. etc. :o
by 8guawong
Fri Nov 28, 2014 12:03 am
Forum: Plugin Development Support
Topic: question about menu and repeat
Replies: 14
Views: 913

my server is linux
but i think changing to player_connect fixed my problem
but it'll be good to see those exceptions gone from the logs ;)

Go to advanced search