Search found 220 matches

by velocity
Thu Oct 13, 2016 12:45 pm
Forum: Plugin Development Support
Topic: Why does Delay expect integer?
Replies: 1
Views: 2417

Why does Delay expect integer?

The code below works.

Syntax: Select all

from listeners.tick import Delay

Delay(0.5, <function_name>)


But my IDLE says the function expects integer and not float? Am I suppose to use an alternative method?
by velocity
Tue Oct 11, 2016 5:53 pm
Forum: General Discussion
Topic: Source-Python for CS:S
Replies: 12
Views: 9350

Re: Source-Python for CS:S

Maybe the documentation should be updated, so other people don't fall for this :p
by velocity
Mon Oct 10, 2016 9:03 pm
Forum: General Discussion
Topic: Source-Python for CS:S
Replies: 12
Views: 9350

Re: Source-Python for CS:S

yap
by velocity
Mon Oct 10, 2016 8:38 pm
Forum: Plugin Development Support
Topic: Collision detection
Replies: 9
Views: 7663

Re: Collision detection

Here's the hook registration & hook body itself. from entities.entity import Entity from entities.hooks import EntityCondition, EntityPreHook from memory import make_object from messages import SayText2 from players.entity import Player TARGET_CLASSNAME = 'flashbang_projectile' @EntityP...
by velocity
Mon Oct 10, 2016 3:19 pm
Forum: Plugin Development Support
Topic: Give Player Command
Replies: 1
Views: 2190

Give Player Command

How do I spawn a weapon and give it to the player?

Syntax: Select all

@Event("player_spawn")
def OnSpawn(game_event):
userid = game_event['userid']
player = Player.from_userd(userid)
--> player.give("weapon_ak47")
by velocity
Mon Oct 10, 2016 12:14 am
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 61885

Re: A menus package is now available!

When sending a menu to the player through a command and then the player select an option that makes another menu popup. If I then type the command again, it does not send the first menu, it just stays on your current menu
by velocity
Sun Oct 09, 2016 10:28 pm
Forum: General Discussion
Topic: Source-Python for CS:S
Replies: 12
Views: 9350

Re: Source-Python for CS:S

New issue:
rcon sp load <plugin>
Sub command "load" not found.
by velocity
Sun Oct 09, 2016 7:57 pm
Forum: General Discussion
Topic: Source-Python for CS:S
Replies: 12
Views: 9350

Re: Source-Python for CS:S

Works thanks.
by velocity
Sun Oct 09, 2016 6:08 pm
Forum: General Discussion
Topic: Source-Python for CS:S
Replies: 12
Views: 9350

Re: Source-Python for CS:S

[Source.Python] Loading... Traceback (most recent call last): File "/home/agent/OGP_User_Files/16/cstrike/addons/source-python/packages/source-python/__init__.py", line 42, in load setup_core_settings() File "/home/agent/OGP_User_Files/16/cstrike/addons/source-python/packages/source-p...
by velocity
Sun Oct 09, 2016 2:28 pm
Forum: General Discussion
Topic: Source-Python for CS:S
Replies: 12
Views: 9350

Source-Python for CS:S

I tried installing source python for CS:S, but it doesn't work. Source-python doesn't get loaded at all.

The logs doesn't say anything.

I check version ld -version its 2.19 so everything should be fine. It's in Linux 14.04 Ubuntu
by velocity
Sun Oct 09, 2016 2:26 pm
Forum: Plugin Development Support
Topic: Collision detection
Replies: 9
Views: 7663

Re: Collision detection

Alright I'll test out soon!
by velocity
Sun Oct 09, 2016 1:38 pm
Forum: Plugin Development Support
Topic: Collision detection
Replies: 9
Views: 7663

Re: Collision detection

There should be, I have been working with something called SDKHook(entity, SDKHook_StartTouch, FunctionName); in SourceMod public OnEntityCreated(entity, const String:classname[]) { // Checks if the entity is a flashbang if (StrContains(classname, "flashbang_projectile") != -1) { SDKHook(e...
by velocity
Sun Oct 09, 2016 1:28 pm
Forum: Plugin Development Support
Topic: Collision detection
Replies: 9
Views: 7663

Collision detection

How can I check if an entity, such as flashbang collide with a player?
by velocity
Sun Oct 09, 2016 1:27 pm
Forum: Plugin Development Support
Topic: What is equal to TeleportEntity()
Replies: 3
Views: 3201

Re: What is equal to TeleportEntity()

Thank you for an example!
by velocity
Sat Oct 01, 2016 1:35 pm
Forum: Plugin Development Support
Topic: What is equal to TeleportEntity()
Replies: 3
Views: 3201

What is equal to TeleportEntity()

I'm trying to push a client in a direction

What's equal to TeleportEntity(client, NULL_VECTOR, NULL_VECOTR, Velocity) in sourcepython?
by velocity
Thu Aug 04, 2016 8:29 pm
Forum: Plugin Development Support
Topic: Something like sdkhooks
Replies: 7
Views: 6224

Re: Something like sdkhooks

Yo guys, thats super cool thank u!
by velocity
Thu Aug 04, 2016 5:52 pm
Forum: Plugin Development Support
Topic: Something like sdkhooks
Replies: 7
Views: 6224

Something like sdkhooks

I've just switched from SourceMod to sourcepython recently, since python is my favorite language.

Does sourcepython have something similar to sdkhooks and the OnPlayerRunCmd?

Such as OnWeaponSwitch and if I wanted to force a player to crouch how would I do that?
by velocity
Sun Mar 08, 2015 5:40 pm
Forum: News & Announcements
Topic: Feature Requests
Replies: 28
Views: 59702

Well I guess that's what, i'm requesting then! Clan tag pointer and my forum messages are totally bugging right now... O.o
by velocity
Sun Mar 08, 2015 5:17 pm
Forum: News & Announcements
Topic: Feature Requests
Replies: 28
Views: 59702

Hi, it would awesome if the features from Source Python Extensions (SPE) will be impliemented in Source Python, such as changing (Player Score, Clan Tag) and I don't know if you can do this already but making player tags such as [<Tag>] Name: Hello there.
by velocity
Tue Jan 27, 2015 3:37 pm
Forum: General Discussion
Topic: Imports
Replies: 2
Views: 2971

Imports

I have been looking through some of the addons in here and into Source Python. I think it's pretty crazy have many things you have to import to create even the most simple scripts :p You really have to read up on the documentation. In this case, why wouldn't I use sourcemod instead? Any reason for t...

Go to advanced search