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

Showing results 1 to 25 of 63
Search took 0.01 seconds.
Search: Posts Made By: Vancold
Forum: Scripting Help 01-11-2021, 11:47
Replies: 0
Views: 357
Posted By Vancold
[TFC] Hamsandwich hook - Ham_Weapon_PrimaryAttack

Hey guys;

Why is it that when i hook Ham_Weapon_PrimaryAttack that i gets called each frame?
According to the source code the primary attack should ONLY trigger once the weapon is inattack AND...
Forum: Scripting Help 02-11-2020, 16:50
Replies: 3
Views: 893
Posted By Vancold
Re: [TFC] How to disable chat sound ; Ham_Touch problem

Ty Darthman ;) The post hook makes sense. The info_tfgoal problem isn't as easy as it sounds. the problem is that i thought that this would be an efficent way, but i got a different idea, that should...
Forum: Scripting Help 02-11-2020, 08:52
Replies: 3
Views: 1,096
Posted By Vancold
Re: Disable smoke grenade?

Hey,

it's rather simple.
All you have to use is the forward CS_OnBuyAttempt(id,item) and check if the item is a CSW_SMOKEGRENADE (constant)

That way you can block out anyone from buying smoke...
Forum: Scripting Help 02-11-2020, 08:44
Replies: 3
Views: 893
Posted By Vancold
[TFC] How to disable chat sound ; Ham_Touch problem

Hey guys!

I do have a short question. When player use the say / team_say command and write something and it gets printed in the server, it makes a sound.

I am no newb but i can't find any clue...
Forum: Scripting Help 09-13-2016, 05:33
Replies: 12
Views: 3,789
Posted By Vancold
Re: [UNSOLVED] How do I know if two entities are colliding?

Well i have an easier version of checking if a person does wall climb.


public plugin_init() {
register_touch("player","worldspawn","wallclimb")
RegisterHam(Ham_TakeDamage,"damage",0)
}
...
Forum: Scripting Help 09-13-2016, 05:23
Replies: 4
Views: 892
Posted By Vancold
Re: [TFC] Reset round with info_tfgoal

Thanks, that approach worked :D

Didn't think off that. It's different from mapping (because when i use info_tfgoal i usually put it into the map to perform certain tasks + any kind of trigger) :D...
Forum: Scripting Help 09-12-2016, 08:59
Replies: 4
Views: 892
Posted By Vancold
Re: [TFC] Reset round with info_tfgoal

Ty for your anwser, but DispatchSpawn is essentially just a differently named call_think :P

It doesn't do a thing
Forum: Scripting Help 09-12-2016, 04:48
Replies: 4
Views: 892
Posted By Vancold
[TFC] Reset round with info_tfgoal

Hey guys & girls!


I am currently trying to recreate an info_tfgoal to restart the rounds (conc_2v2, quad_2v2)


The values needed to restart the round are:
Forum: Scripting Help 04-17-2016, 06:33
Replies: 10
Views: 1,435
Posted By Vancold
Re: Plugin Help

The simplest way to do it is to create a task.

The task would destroy the menu and call it every second.
If the player made any input it still reacts, but after a certain amount of time it would...
Forum: Off-Topic 03-31-2016, 08:42
Replies: 1
Views: 832
Posted By Vancold
Forum: Scripting Help 11-12-2015, 11:55
Replies: 5
Views: 869
Posted By Vancold
Re: Detect trigger_hurt world entity

If you want to hook a trigger_hurt just go for a Ham.
Every trigger_hurt counts.

RegisterHam(Ham_Touch,"trigger_hurt","myFunction")

public void myFunction(ent,id){
//check for things; In this...
Forum: Off-Topic 11-11-2015, 09:08
Replies: 1
Views: 832
Posted By Vancold
func_vehicle to func_tracktrain

Hey guys

is it possible to convert func_vehicle (+ control ) to func_tracktrain (+control)
?
I tried it but i couldn't get anything useful, the cars do not work properly.
Any guess?
Forum: Scripting Help 09-18-2015, 08:57
Replies: 2
Views: 569
Posted By Vancold
Forum: Scripting Help 09-05-2015, 12:33
Replies: 3
Views: 782
Posted By Vancold
Re: What is the best wav sound format that emit_sound can play?

Well maybe 22k work too. But it just wrote the format is use.
But the other values should be like that. The length is important.
Forum: Scripting Help 09-05-2015, 12:28
Replies: 9
Views: 1,482
Posted By Vancold
Re: Give the player burning effect

Hey!

Usually you'd need a fire sprite and sound to make it realistic.

Do you have a sprite effect and a sound?

If yes i could code you a simple example on how to do those effects correctly....
Forum: Scripting Help 09-03-2015, 02:33
Replies: 12
Views: 2,944
Posted By Vancold
Re: Register Touch...

You could use RegisterHam Ham_Touch.
Works fine. just read up on it
Forum: Scripting Help 09-02-2015, 06:28
Replies: 2
Views: 439
Posted By Vancold
Re: [TFC] Set_Task doesn't start

Topic can be deleted / closed. Found the reason why.
Thought the ID i call in the task is the user id. It is the task id.
Set up the task ID accordingly to the user.

Now it does work
Forum: Scripting Help 09-01-2015, 11:06
Replies: 2
Views: 439
Posted By Vancold
Re: [TFC] Set_Task doesn't start

i wasn't bumping, i am just confused as to why it doesn't work.
Why should i bump a topic that is almost in top spot anyways? lol
a bump post would be

bump

or up

...
Forum: Scripting Help 09-01-2015, 09:35
Replies: 3
Views: 782
Posted By Vancold
Re: What is the best wav sound format that emit_sound can play?

wav pcm 8bit 11025hz mono


That's the format is use.
Don't make the .wav files too long. If they are they won't work
(atleast for me)
Forum: Scripting Help 09-01-2015, 08:02
Replies: 8
Views: 856
Posted By Vancold
Re: Is there a tutorial for this?

Yeah that's good, why don't you use it then? Database - Storage > file based storage.
But that's your choice. :p
Forum: Scripting Help 09-01-2015, 06:12
Replies: 8
Views: 856
Posted By Vancold
Re: Is there a tutorial for this?

Learn Mysql, learn how to create menu's, create databases, read and write + a menu system.
Simple as that.
Forum: Scripting Help 09-01-2015, 04:53
Replies: 2
Views: 439
Posted By Vancold
[TFC] Set_Task doesn't start

Hey


new color[3]

for(new i = 0; i < g_SimonIndex[id ]; i++) {

client_print(id,print_chat,"%d",g_ColorArray[id][i])

switch(g_ColorArray[id][i]) {
Forum: Scripting Help 08-20-2015, 17:40
Replies: 23
Views: 4,675
Posted By Vancold
Re: [TFC] Backpack drop issue

Well how does call_think work?
Never used it.

And no as said it doesnt contain a weapon, but since arkshine insisted on the fact that it would be benifical to the plugin to use call_think i'd...
Forum: Scripting Help 08-20-2015, 15:31
Replies: 23
Views: 4,675
Posted By Vancold
Re: [TFC] Backpack drop issue

AHHH k now i know what u mean.
There are weapons that can be picked up in tfc too. But i don't use them on the server so it's okay :) He's right tho. It does even exist in TFC and would cause...
Forum: Scripting Help 08-20-2015, 14:29
Replies: 23
Views: 4,675
Posted By Vancold
Re: [TFC] Backpack drop issue

Well. The code does one thing. If someone uses a backpack drop command or dies the backpack spawns. And the code hooked this event, marking it for "killing". The server then proceedes to do so. In a...
Showing results 1 to 25 of 63

 
Forum Jump

All times are GMT -4. The time now is 18:01.


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