Search found 159 matches

by Predz
Sun Sep 27, 2015 7:01 pm
Forum: Whatever
Topic: Odd Request (Splitting string in C++)
Replies: 4
Views: 5354

Dont worry fixed my own problem and just used string::substr :)
by Predz
Sun Sep 27, 2015 6:49 pm
Forum: Whatever
Topic: Odd Request (Splitting string in C++)
Replies: 4
Views: 5354

Odd Request (Splitting string in C++)

Hey, maybe a odd request but how would I go about splitting a string in C++? I am sorta trying to recreate the following below in C++. def converter(steamid): prefix, a, b = steamid.split(':') return '[U:1:{}]'.format(int(b)*2+int(a)) string ID...
by Predz
Sun Sep 20, 2015 9:06 am
Forum: General Discussion
Topic: Loading SP Problem (May not be a problem on our side)
Replies: 1
Views: 2810

Loading SP Problem (May not be a problem on our side)

Hey. I just purchased a server from verygames.co.uk so I can stop using a dedicated server on my computer for testing plugins. I know it works on my computer, but have just uploaded it to the verygames server and seems to crash everytime it is attempted to be loaded. Anything I should be aware of th...
by Predz
Sun Aug 02, 2015 9:31 pm
Forum: Plugin Development Support
Topic: Using EntityPreHook on drop_weapon
Replies: 7
Views: 4794

Lol you beat me to it Ayuto! :P
by Predz
Sun Jul 26, 2015 10:43 am
Forum: Plugin Development Support
Topic: EntityPreHook bump_weapon lags
Replies: 8
Views: 7010

From what I know about the "weapon_bump" function in CSGO, and CSS, is that it seems to be fired every game tick as long as you are stood on a weapon. So therefore I think it maybe that your code is being fired every game tick and thus causing some sort of instability in the server. Not to sure othe...
by Predz
Sat Jun 06, 2015 7:06 am
Forum: Plugin Development Support
Topic: help porting pawn plugin to py
Replies: 16
Views: 12647

From what I can see most of it is correct the only error I can notice is that PlayerEntity requires an index and not a userid. PlayerEntity(<index>)
by Predz
Thu Jun 04, 2015 10:32 pm
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

Okay. Scrap everything I have been doing. I converted Rob123's suggested plugin directly and it works beautifully :grin: Code is below :smile: from players.entity import PlayerEntity from players.helpers import index_from_userid from events import Event from mathlib import Vector from messages impor...
by Predz
Thu Jun 04, 2015 11:21 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

What I have so far, am a little stuck now. Any help would be appreciated :) Also, think I went a little over the top with the math? Or is this all necessary? A picture is underneath for your reference. view_vector = player.view_vector # Construct the simple right angle triange including missing valu...
by Predz
Thu Jun 04, 2015 10:01 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

No problem. Thanks, am currently testing this.
by Predz
Thu Jun 04, 2015 9:50 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

Awesome!

However how would I obtain a vector from that? Or does it return the vector of the normal?
by Predz
Thu Jun 04, 2015 9:27 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

Yeh I am working on something now. This plugin gave me an idea :D

Making a drawing for you guys now :D

Image

This requires 2 trace rays though.
by Predz
Thu Jun 04, 2015 9:15 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

Yeh the normal is exactly what I am after, however to find the normal you must get the vector of the wall :D
by Predz
Thu Jun 04, 2015 8:46 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

I want to calculate the angle of incidence so I can bounce bullets off of walls :D
by Predz
Thu Jun 04, 2015 8:10 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

Couldn't we somehow obtain the vector of the wall though? Because if so then I have an idea ;)

EDIT: This is the problem I was having trouble with xD
by Predz
Thu Jun 04, 2015 7:27 am
Forum: Plugin Development Support
Topic: Angle of Incidence
Replies: 14
Views: 10343

Angle of Incidence

Okay. This is less of scripting support and more of mathematical support :D I have tried to work this out myself, but just MASSIVELY confused myself in the process. I want to calculate the angle of incidence upon a player shooting a wall. I am not worried whether this is a 2D or 3D angle, however mu...
by Predz
Wed May 27, 2015 11:26 am
Forum: Plugin Development Support
Topic: Cs:go color & some weapons
Replies: 15
Views: 15610

Yeh the offsets have changed, just check this website if you want the current up to date ones.

https://www.sourcemodplugins.org/vtableoffsets/csgo

GiveNamedItem is now 446 and 447 for windows and linux, respectively.
by Predz
Tue May 26, 2015 10:13 am
Forum: General Discussion
Topic: render_color changes?
Replies: 1
Views: 2504

render_color changes?

Have there been changes to the render_color property? Because the current <Entity>.color property doesn't work. You must now supply a Color instance directly to the render_color property rather than an integer. I got it to work my side by doing.

Syntax: Select all

player.render_color = Color(255, 0, 0)
by Predz
Wed May 20, 2015 8:31 am
Forum: News & Announcements
Topic: A new release! (May 19, 2015)
Replies: 23
Views: 51936

Works beautifully on my linux server though! :D
by Predz
Wed May 20, 2015 8:11 am
Forum: News & Announcements
Topic: A new release! (May 19, 2015)
Replies: 23
Views: 51936

Yeh I was trying to run it client side, however gives that crash report. I tried removing the vdf however now it just crashes, when I load the plugin.

Going to try running it on a server now. The server is Linux so may load up SCRDS on my system too, to test for Windows servers.
by Predz
Tue May 19, 2015 11:03 pm
Forum: News & Announcements
Topic: A new release! (May 19, 2015)
Replies: 23
Views: 51936

Thank you for the update, been hoping for one for a while, just have a problem :( I haven't tried this on a server yet but I seem to crash when loading CSGO in insecure mode. CSGO doesnt even get into the first image, just goes black and crashes. Not to sure whether this helps or not but I can't fin...

Go to advanced search