Raised This Month: $ Target: $400
 0% 

[solved] modify original deathMsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-13-2009 , 12:02   Re: modify original deathMsg
Reply With Quote #1

set_task, minimum is 0.1.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 12:03   Re: modify original deathMsg
Reply With Quote #2

Set it less than 0.1 and task is executed on next frame.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 12:04   Re: modify original deathMsg
Reply With Quote #3

Quote:
Originally Posted by ConnorMcLeod View Post
Set it less than 0.1 and task is executed on next frame.
O_o Really?
Empowers is offline
Send a message via ICQ to Empowers
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-13-2009 , 12:09   Re: modify original deathMsg
Reply With Quote #4

Quote:
Originally Posted by ConnorMcLeod View Post
Set it less than 0.1 and task is executed on next frame.
That's actually useless if the player/server experiences a slight LAG and the info changing delays...

I think the best way is to set a variable at the main function... check it in a client info changed forward, then set a task to display the death message and reset the name aaaand set the variable to increased number to be set to 0 after the 2nd info change...

don't know if anyone understood what I just said... I know I don't understand =), I'm trying to do that but I always get lost
__________________
Hunter-Digital is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 04-13-2009 , 12:09   Re: modify original deathMsg
Reply With Quote #5

I don't see how. There is a check before. Or I miss something.

Code:
if (base < 0.1f)
	base = 0.1f;
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 12:13   Re: modify original deathMsg
Reply With Quote #6

Was sure teame06 used that in his kz plugin.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 12:16   Re: modify original deathMsg
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Was sure teame06 used that in his kz plugin.
maybe he used that in set_pev(ent, pev_nextthink, x) ?? But not in set_task
Empowers is offline
Send a message via ICQ to Empowers
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-13-2009 , 12:32   Re: modify original deathMsg
Reply With Quote #8

No.

PHP Code:
delay_duck(id)
{
    
set_task(0.01"force_duck"id);
    
_fm_set_entity_flags(idFL_DUCKING1);

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 04-13-2009 , 13:46   Re: modify original deathMsg
Reply With Quote #9

O.o... just tested connor's code, it works, the message is not sent because the other command already sets the name and the engine thinks it's the same name, awesome !

but a confusing thing about the set task with arguments...
Code:
static args[5][]
args[0] = killer
args[1] = id
args[2] = hs
args[3] = weapon
args[4] = name
set_task(0.1, "event_playerDeathPost", 12985, args, 5)
 
//...
 
public event_playerDeathPost(killer, victim, hs, weapon[], name[])
last two are strings... I don't know how to make an array with numbers AND strings


oh, and also about your delay discutions around here... you guys could just test to clear it out... set two different tasks, 0.1 and 0.01, and use get_gametime() to see if there's any difference
__________________

Last edited by Hunter-Digital; 04-13-2009 at 13:49.
Hunter-Digital is offline
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-13-2009 , 12:15   Re: modify original deathMsg
Reply With Quote #10

Quote:
Originally Posted by arkshine View Post
I don't see how. There is a check before. Or I miss something.

Code:
if (base < 0.1f)
	base = 0.1f;
Arshine can U change this value to 0.01 ? And recompile?
Empowers is offline
Send a message via ICQ to Empowers
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:25.


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