Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 25 of 92
Search took 0.01 seconds.
Search: Posts Made By: SNCurti
Forum: Scripting 01-24-2017, 10:14
Replies: 8
Views: 1,558
Posted By SNCurti
Re: Difficulty with plugin-strange glitches?

Is that the latest forward, because I was told that ideally for hooking things like this the later it is the better.
Forum: Scripting 01-23-2017, 14:53
Replies: 8
Views: 1,558
Posted By SNCurti
Re: Difficulty with plugin-strange glitches?

#include <sourcemod>
#include <sdkhooks>
#include <tf2_stocks>
#include <tf2items>

#pragma semicolon 1

int PlayerHit[MAXPLAYERS+1] = 0; int weapon[MAXPLAYERS+1];

int laserrifle = 30665;
Forum: Scripting 01-22-2017, 22:12
Replies: 8
Views: 1,558
Posted By SNCurti
Difficulty with plugin-strange glitches?

#include <sourcemod>
#include <sdkhooks>
#include <tf2_stocks>
#include <tf2items>

#pragma semicolon 1

int PlayerHit[MAXPLAYERS+1] = 0;

const int laserrifle = 30665;
Forum: Scripting 01-22-2017, 13:41
Replies: 4
Views: 1,458
Posted By SNCurti
Re: Traceray inaccuracy-any way to fix this?

I'm inexperienced with spawning weapons and using them on players. Any guidance or example of usage?

I was thinking of making the shooting star with infinite ammo and no damage done, but I don't...
Forum: Scripting 01-22-2017, 13:26
Replies: 4
Views: 1,458
Posted By SNCurti
Re: Traceray inaccuracy-any way to fix this?

MASK_SHOT has what I need if it registers hitboxes... but this lagbehind, any way to fix it?
Forum: Scripting 01-22-2017, 11:00
Replies: 4
Views: 1,458
Posted By SNCurti
Traceray inaccuracy-any way to fix this?

I'm working on a code that relies heavily on traceray to shoot a laser at what you are aiming at.

Unfortunately, traceray is either too accurate and doesn't use any hitscan, or is delayed and...
Forum: TF2Items 07-03-2016, 23:03
Replies: 0
Views: 1,243
Posted By SNCurti
TF2Items issue with creating a weapon.

#include <tf2_stocks>
#include <sdktools_functions>
#include <tf2items>
#include <tf2items_giveweapon>

public OnGameFrame()
{
for (int i = 1; i <= MaxClients; i++)
{
if...
Forum: Scripting 06-30-2016, 16:12
Replies: 0
Views: 442
Posted By SNCurti
How to give a player a rocket launcher?

Hello. I was just wondering, how would I give a player in TF2 a rocket launcher with only one rocket in the clip?

I tried it like this -
if (TF2_GetPlayerClass(i) == TFClass_Soldier)
{...
Forum: Scripting 06-28-2016, 17:46
Replies: 15
Views: 2,486
Posted By SNCurti
Re: How to add a language file

A translation file can be made as a .txt file. Put it in the server or your local translations folder, and LoadTranslations("<filename>")... it has to be formatted correctly.
To use the translation,...
Forum: Scripting 06-26-2016, 20:33
Replies: 10
Views: 1,511
Posted By SNCurti
Re: Compilation fails - array index out of bounds

Whoops, that's right, only for chars.
Forum: Scripting 06-26-2016, 19:12
Replies: 10
Views: 1,511
Posted By SNCurti
Re: Compilation fails - array index out of bounds

Which is one size bigger, pls, I meant number wise >.>, not storage wise, don't get caught up in the nitty gritty, if you need 6 slots it's 7 for an array size. That simple. Don't get him comfused...
Forum: Scripting 06-26-2016, 10:36
Replies: 10
Views: 1,511
Posted By SNCurti
Re: Compilation fails - array index out of bounds

You declared arrays that are equal in size to your convars, arrays need to be one size larger than what you fill them with, so g_hCvar needs to be 8 and the other one 7 in size.
Forum: Scripting 06-24-2016, 15:49
Replies: 0
Views: 447
Posted By SNCurti
Setting up auras on people?

Hello guys, so I want to be able to set up auras on players, but I have no idea about how to even start doing this.
I just want to enlarge a tf2 hat effect and place it on a player instead of a hat....
Forum: Scripting 06-24-2016, 15:13
Replies: 0
Views: 389
Posted By SNCurti
How to use the killstreak announcements for anyone?

Hello!
I'm trying to broadcast the killstreak announcements even if people don't have ks weapons when they get to a certain kill amount. Does anyone know how to setup the killstreak announcements?
Forum: Scripting 06-23-2016, 14:35
Replies: 1
Views: 395
Posted By SNCurti
Re: +throw command

Do a command listener, pick it up, and let it do its desired function I believe.
Forum: Scripting 06-22-2016, 22:46
Replies: 8
Views: 1,139
Posted By SNCurti
That won't work. That sdk_ontakedamage hook works...

That won't work. That sdk_ontakedamage hook works only after the backstab action has happened, (where the attack has commenced but the damage is not fully registered), and I want to predict it....
Forum: Scripting 06-22-2016, 15:26
Replies: 8
Views: 1,139
Posted By SNCurti
Re: Any flags for being in backstab position or doing a backstab (not the SDKHook dam

Ok. so I got some help.
stock bool IsClientBackstabbing(int client, int victim)
{
#define min(%1,%2) (%1 < %2 ? %1 : %2)
#define max(%1,%2) (%1 > %2 ? %1 : %2)

int melee =...
Forum: Scripting 06-21-2016, 22:18
Replies: 8
Views: 1,139
Posted By SNCurti
Re: Any flags for being in backstab position or doing a backstab (not the SDKHook dam

Would you know how to go about doing this, and I added you ESK0, thanks for the responses.
I'm in a position where I don't think I can just create my own calculation or replication of the logic. I'd...
Forum: Scripting 06-21-2016, 20:40
Replies: 8
Views: 1,139
Posted By SNCurti
Re: Any flags for being in backstab position or doing a backstab (not the SDKHook dam

I'm looking for something that detects it before this, your suggestions would only work after the fact or I would need to know some kind of way to find out if a player is backstabbing or in backstab...
Forum: Scripting 06-21-2016, 18:07
Replies: 8
Views: 1,139
Posted By SNCurti
Any flags for being in backstab position or doing a backstab (not the SDKHook damage)

Hi, so currently I'm doing something that requires me to figure stuff out pretty quickly.

public OnGameFrame()
{
for (int i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i))
{
if...
Forum: Scripting 06-20-2016, 14:02
Replies: 5
Views: 1,053
Posted By SNCurti
Re: Can Someone Translate This To Sourcemod

#define PLUGIN "T Sustum"
#define VERSION "1.0"
#define AUTHOR "xPRoTeiNN"

new Gelen[128],Komut[10],Kalan[118]
new dogrukelime[128]
bool sustumbasladi = false;

public OnPluginStart()
{
Forum: Scripting 06-20-2016, 07:34
Replies: 5
Views: 1,053
Posted By SNCurti
Re: Can Someone Translate This To Sourcemod

I'll do it when I return home.
Forum: Scripting 06-19-2016, 14:44
Replies: 2
Views: 579
Posted By SNCurti
Forum: Scripting 06-19-2016, 14:33
Replies: 3
Views: 476
Posted By SNCurti
Re: Hook crash and send reconnection request

Server crashes are typically unpredictable, it would be strange that a function could predict a server crash. A reconnect request may need to be through a steam bot that acknowledges server downtime...
Forum: Scripting 06-18-2016, 20:06
Replies: 5
Views: 1,042
Posted By SNCurti
Re: weapon restrict

Buying is a cmd, so OnPlayerRunCmd should catch it before it is dobe, you can also addcommandlistener for the buy command.
If you need an example I can show.
Showing results 1 to 25 of 92

 
Forum Jump

All times are GMT -4. The time now is 20:08.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode