Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 39
Search took 0.01 seconds.
Search: Posts Made By: SimonTheOne
Forum: Coding MM:S Plugins & SM Extensions 06-02-2011, 03:15
Replies: 72
Views: 28,349
Posted By SimonTheOne
Re: NPC in CS:S

Could this also be used to fix the fast zombies in HL2DM?
Forum: Scripting 04-28-2011, 06:40
Replies: 2
Views: 1,286
Posted By SimonTheOne
Re: replicate kill

Take a look at SDKhook's:
native SDKHooks_TakeDamage(entity, inflictor, attacker, Float:damage, damageType=DMG_GENERIC, weapon=-1, const Float:damageForce[3]=NULL_VECTOR, const...
Forum: Scripting 04-25-2011, 05:21
Replies: 3
Views: 868
Posted By SimonTheOne
Re: User messaging

http://docs.sourcemod.net/api/index.php?fastload=show&id=115&

with this function you can send a chat message to all players.
there's also PrintToChat, wich is able to send a message to one client.
Forum: Scripting 03-23-2011, 06:03
Replies: 15
Views: 3,573
Posted By SimonTheOne
Re: Control who can see an attached particle

Try parenting it to an info_target
Forum: Scripting 03-02-2011, 06:37
Replies: 5
Views: 1,747
Posted By SimonTheOne
Re: entity flag numbers

yep, thats what i meant with: "but i think you can also see the flags in hammer."
just couldn't remember how
Forum: Scripting 02-28-2011, 12:41
Replies: 5
Views: 1,747
Posted By SimonTheOne
Re: entity flag numbers

go to hammer, put in the flags, open the map in notepad, search up the entity u put the flags on and there you go.
but i think you can also see the flags in hammer.
Forum: Scripting 02-27-2011, 04:34
Replies: 10
Views: 2,677
Posted By SimonTheOne
Re: a metre

so is hl2dm distance:
GetVectorDistance(const Float:vec1[3], const Float:vec2[3], bool:squared=false) / (64 / 1.2)

or:
GetVectorDistance(const Float:vec1[3], const Float:vec2[3],...
Forum: Scripting 02-26-2011, 01:09
Replies: 10
Views: 2,677
Posted By SimonTheOne
Re: a metre

and hl2dm?
Forum: Scripting 02-25-2011, 08:59
Replies: 10
Views: 2,677
Posted By SimonTheOne
Re: a metre

thanks :)
Forum: Scripting 02-25-2011, 08:34
Replies: 10
Views: 2,677
Posted By SimonTheOne
a metre

native Float:GetVectorDistance(const Float:vec1[3], const Float:vec2[3], bool:squared=false);

how much is a metre?

or is there an other way to calculate how much metres clients are away from...
Forum: Scripting 02-20-2011, 13:59
Replies: 0
Views: 757
Posted By SimonTheOne
Synched HUD messages.

Hello there,

Ive been trying to find a good way to do this but so far ive failed, probably also because of my insufficient knowledge of HUD messages.

As far as i know this is right:
every...
Forum: Scripting 12-31-2010, 03:11
Replies: 5
Views: 2,263
Posted By SimonTheOne
Re: Values of User Messages?

how do i disassemble the server dll, i found lots of programs that say they can do it but not one that actually worked
Forum: Scripting 12-29-2010, 11:49
Replies: 25
Views: 14,544
Posted By SimonTheOne
Re: [ENTITY] Set Parent

ow ye. if ur using SetParentAttachment, u dont have to teleport the entity to the player. It does that for you. SetParentAttachmentMaintainOffset doesn't
Forum: Scripting 12-29-2010, 11:28
Replies: 25
Views: 14,544
Posted By SimonTheOne
Re: [ENTITY] Set Parent

Its better to parent the activator so you won't have to change the targetname.
like this:
SetVariantString("!activator");
AcceptEntityInput(iEnt, "SetParent", szClientNum);

Then for the head...
Forum: Scripting 12-27-2010, 12:57
Replies: 12
Views: 2,931
Posted By SimonTheOne
Re: Players

new players = GetClientCount()

players = your playercount
Forum: Scripting 11-02-2010, 14:11
Replies: 4
Views: 1,540
Posted By SimonTheOne
Re: How to detect if a player is stuck in a prop_dynamic_override

i think he means this one:
http://forums.alliedmods.net/showthread.php?t=141684&highlight=hook+stuck
Forum: Scripting 10-22-2010, 01:06
Replies: 5
Views: 2,196
Posted By SimonTheOne
Re: Player Death Animation Entity?

When a player dies a ragdoll gets spawned, you can get its index by using this:
new ragdoll = GetEntPropEnt(client, Prop_Send, "m_hRagdoll");

so all that's left is to make it invisible.
Forum: Scripting 09-07-2010, 00:33
Replies: 4
Views: 1,245
Posted By SimonTheOne
Re: Is there any event that can tell if a survivor is dead by falling from high place

http://wiki.alliedmods.net/Left_4_Dead_2_Events#player_falldamage

i guess this should do
Forum: Scripting 09-01-2010, 09:22
Replies: 4
Views: 5,529
Posted By SimonTheOne
Re: SetParentAttachment - Bone position

dispatchkeyvalue(i_prop, "angles", "0 0 0");

or

new Float:Angles[3] = {0, 0, 0};

SetEntPropVector(i_prop, Prop_Send, m_vecAngles, Angles);

one of these should work i think
Forum: Scripting 08-17-2010, 00:51
Replies: 7
Views: 1,833
Posted By SimonTheOne
Re: HL2DM Specator

there's a server in hl2dm that has the spectater team as a 3rd playing team, but that's impossible to make with sourcemod i think
Forum: Scripting 08-06-2010, 15:18
Replies: 8
Views: 2,347
Posted By SimonTheOne
Re: Trigger Entities

use this:

public OnMapStart()
{
HookEntityOutput("func_button", "OnPressed", Button_Pressed);
}

public Button_Pressed(const String:output[], caller, activator, Float:delay)
{
// do your...
Forum: Scripting 08-04-2010, 15:35
Replies: 8
Views: 4,313
Posted By SimonTheOne
Re: Make a Trace Ray ignore everything except an entity

try this:

new Handle:Trace = TR_TraceRayFilterEx(TraceOrg, TraceAng, MASK_SOLID, RayType_Infinite, TraceFilter);



public bool:TraceFilter(entity, contentsMask, any:Ent)
{
if...
Forum: Scripting 06-18-2010, 16:42
Replies: 13
Views: 2,952
Posted By SimonTheOne
Re: Get Random Number With Desimal places

decl String:buffer[3];

new Float:num = GetRandomFloat(1.0, 10.0);
FloatToString(num, buffer, 3);

this is how i would do it.
Forum: Scripting 06-12-2010, 03:27
Replies: 0
Views: 1,069
Posted By SimonTheOne
setclientviewentity

im trying to put the clients view to an info_target but its not working.

this is what i got:
public Output_AnimationDone(const String:output[], caller, activator, Float:delay)
{...
Forum: Scripting 05-25-2010, 02:13
Replies: 4
Views: 1,212
Posted By SimonTheOne
Re: Shitlist Kick

use this

public SpawnEvent(Handle:event,const String:name[],bool:dontBroadcast)
{
new client_id = GetEventInt(event, "userid");
new client = GetClientOfUserId(client_id);

decl...
Showing results 1 to 25 of 39

 
Forum Jump

All times are GMT -4. The time now is 07:09.


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