Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 109
Search took 0.01 seconds.
Search: Posts Made By: StSatan
Forum: Scripting 03-02-2018, 05:46
Replies: 17
Views: 3,516
Posted By StSatan
Re: CS:GO - Tagging "Slowing Down When Attacked"

Just set m_flVelocityModifier property to 1.0 after receiving damage (post hook of sdk hook takedamage, or may be post hook of event player_hurt I don't remember). This is what you need.
Forum: Scripting 02-25-2018, 17:21
Replies: 1
Views: 1,288
Posted By StSatan
[CS:GO] Player collision box resizing

Hi all. How can I resize player collision box. Default box size is x:16.0 y:16.0 z:72.0
I need to set it to smaller without model resizing, only collision box.
This is need to player could come...
Forum: Scripting 02-15-2018, 10:08
Replies: 4
Views: 1,720
Posted By StSatan
Re: Enum int, float and string types - tag mismatch

So, the better solution is to declare array as enum type, but it works only for float and int values, if you try to copy arrays it will be a tag mismatch again:


EnumName array[EnumName];


...
Forum: Scripting 02-14-2018, 07:34
Replies: 4
Views: 1,720
Posted By StSatan
Re: Enum int, float and string types - tag mismatch

Found 1 solution, omg:


switch(view_as<EnumName>(index))
{
case Value1: array[Value1] = StringToInt(value);
case Value2: array[Value2] = StringToFloat(value);
case Value3:...
Forum: Scripting 02-14-2018, 07:16
Replies: 4
Views: 1,720
Posted By StSatan
Enum int, float and string types - tag mismatch

Hello everyone. I have a question, compiler warns me when I assign different types values to array binded to enum structure.

Let's imagine:

enum EnumName
{
Value1,
Float:Value2,...
Forum: General 08-18-2016, 14:36
Replies: 9
Views: 2,093
Posted By StSatan
Re: Strange errors (sourcemod exceptions)

http://1.1m.yt/Z4Riyld.png

Ok, then I'd like to see a fix of this errors in near future, because it is very confusing.
Forum: General 08-18-2016, 01:11
Replies: 9
Views: 2,093
Posted By StSatan
Re: Strange errors (sourcemod exception)

Yes, I'm sure, it's mine. Compiler 1.8.
It throws errors like plugin not runnable when I change my plugin and reload it by mapchange, Another unknown errors throws at server restart, like starting...
Forum: General 08-17-2016, 14:12
Replies: 9
Views: 2,093
Posted By StSatan
Strange errors (sourcemod exceptions)

Hello all, can someone explane me, what is a new thing came with new version of SM (1.8)

Sometimes server throw errors at startup, with no debug info:

L 08/12/2016 - 23:08:25: SourceMod error...
Forum: Scripting 08-04-2016, 12:23
Replies: 12
Views: 2,737
Posted By StSatan
Re: player_death event

https://sm.alliedmods.net/new-api/events/Event/FireToClient
Forum: Scripting 07-28-2016, 01:49
Replies: 18
Views: 3,530
Posted By StSatan
Re: [CS:GO] Problem with assists manipulation

I noticed that it fires with different delay, and use RequestFrame is not solution, because it may fires a little later than necessary and RequestFrame is not needed and all working fine, or it may...
Forum: Scripting 07-26-2016, 20:19
Replies: 18
Views: 3,530
Posted By StSatan
Re: [CS:GO] Problem with assists manipulation

Better to use sdkhook to hook player spawn, because player_spawn event little buggy. I have never use it.


#include <sourcemod>
#include <sdkhooks>
#include <cstrike>

#pragma semicolon 1
...
Forum: Scripting 07-25-2016, 20:31
Replies: 18
Views: 3,530
Posted By StSatan
Re: [CS:GO] Problem with assists manipulation

#include <sourcemod>
#include <sdktools>
#include <cstrike>

#pragma semicolon 1

int g_iScore[MAXPLAYERS];

public OnPluginStart()
{
Forum: Scripting 07-25-2016, 09:16
Replies: 18
Views: 3,530
Posted By StSatan
Re: [CS:GO] Problem with assists manipulation

client assists and mvps reset every spawn, so you need to cache the value of you assists by global variable and restore it every player spawn
Forum: Plugins 04-08-2016, 05:33
Replies: 167
Views: 152,364
Posted By StSatan
Re: [CS:GO] Movement Unlocker

If I understand correctly, this plugin removes the limit of m_flMaxspeed, and clients on the ground can move with speed more than 260.0?
With this plugin you may set m_flMaxspeed over than 260.0,...
Forum: Scripting 04-02-2016, 08:18
Replies: 9
Views: 1,523
Posted By StSatan
Re: Unable to read data received from socket?

Line 110:
if(!StrContains(receiveData, key) != -1)
0 always != -1

must be
if(StrContains(receiveData, key) != -1)
Forum: Scripting 03-27-2016, 08:31
Replies: 4
Views: 1,086
Posted By StSatan
Keyvalues bug?

I can not login to the bugtracker so I write here...

I have a code


void KeyValuesInit()
{
Handle hProfile = CreateProfiler()
StartProfiling(hProfile)
char g_sWeaponNames[][] = {...
Forum: Unapproved Plugins 03-19-2016, 16:52
Replies: 835
Views: 290,715
Posted By StSatan
Re: [CS:GO] Zombie Plague 4.7.3

Action DamageWithOutPainShock(CBasePlayer* cBaseVictim, float flDamage)
{
// Removing painshock
int vHealth = cBaseVictim->m_iHealth;

// Get survivor health
if(vHealth > 0)
{
vHealth...
Forum: Unapproved Plugins 03-19-2016, 12:48
Replies: 835
Views: 290,715
Posted By StSatan
Re: [CS:GO] Zombie Plague 4.7.3

// Fire switch team for zombie after 0.1 to fix problem with player_death event.
CreateTimer(0.1, CGameRules::ZombieSwitchTeam, view_as<int>(cBaseVictim))

Have you tried to use this function?...
Forum: Scripting 03-18-2016, 02:25
Replies: 14
Views: 6,621
Posted By StSatan
Re: X-ray for alive player

for(int i = 1; i <= MaxClients; ++i)
{
if(!IsClientInGame(i) || !IsPlayerAlive(i))
continue

SetEntPropFloat(i, Prop_Send, "m_flDetectedByEnemySensorTime", GetGameTime() + 9999.0)
}...
Forum: Snippets and Tutorials 03-17-2016, 15:27
Replies: 196
Views: 161,257
Posted By StSatan
Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting

Add words to end of sourcemod.xml file, which you want to pop up, for example:

<KeyWord name="your_word"/>

if you want to add hints from custom the file, you need to handle these files with...
Forum: Snippets and Tutorials 03-09-2016, 05:01
Replies: 196
Views: 161,257
Posted By StSatan
Re: [TOOLS] Notepad++ Auto-completion/Inline Docs/Syntax Highlighting

If you made default installation of NPP, go to your npp installation directory, you need a subdirectory \plugins\APIs
copy sourcemod.xml to that directory.

After that you need to press keys WIN+R...
Forum: Scripting 03-05-2016, 17:36
Replies: 9
Views: 4,943
Posted By StSatan
Re: CSGO how to add spawn now

ok, i reworked spawntools7 plugin for myself (for CS:GO). I made a few tests only on CSGO, and it works, there are may be some bugs. I'm not sure that it will work 100% correct...
Forum: Scripting 03-05-2016, 12:08
Replies: 9
Views: 4,943
Posted By StSatan
Re: CSGO how to add spawn now

returns entity index over than 2048, while max possible entities is 2048, is it normal?
Forum: Scripting 03-05-2016, 10:09
Replies: 9
Views: 4,943
Posted By StSatan
Re: CSGO how to add spawn now

All I can say is that info_player_ entity created with negative entity index, and:


int entity = CreateEntityByName("info_player_terrorist")

if(entity > 0)
{
...
}
Forum: Scripting 02-17-2016, 16:32
Replies: 6
Views: 2,189
Posted By StSatan
Re: [CS:GO] Grenades spawn

damn, I poorly copyed the code... In original code it's ok. Compiling also ok (with no errors and warnings).
You may test ready and "fixed" code, and it wont work:


#include <sourcemod>...
Showing results 1 to 25 of 109

 
Forum Jump

All times are GMT -4. The time now is 19:12.


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