AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   I have a question about speeds. (https://forums.alliedmods.net/showthread.php?t=98713)

ƒa†es™ 07-28-2009 08:29

I have a question about speeds.
 
Is it possible to set speed on zombie plague ?

because i try to use this but didn't work.

PHP Code:

set_user_maxspeedid470 

Is there anyway i can set speed in zombie plague ??

Arkshine 07-28-2009 08:31

Re: I have a question.
 
Zombie's speed is defined when you register the zombie with zp_register_zombie_class().

5c0r-|3i0 07-28-2009 11:44

Re: I have a question.
 
But you mean constant speed , or non-constant ??
Maybe there's another way if u want to set speed non-constant.
Look at this plugins .

hleV 07-28-2009 11:54

Re: I have a question.
 
Code:
set_user_maxspeed(id, 470.0);

Jon 07-28-2009 12:34

Re: I have a question.
 
Don't make stupid topic titles.

ƒa†es™ 07-29-2009 09:59

Re: I have a question about speeds.
 
Quote:

Originally Posted by 5c0r-|3i0 (Post 883972)
But you mean constant speed , or non-constant ??
Maybe there's another way if u want to set speed non-constant.
Look at this plugins .

I trying to add speed in extra item.


Quote:

Originally Posted by hleV (Post 883982)
Code:
set_user_maxspeed(id, 470.0);

Didn't work. as like default

Xellath 07-29-2009 10:19

Re: I have a question about speeds.
 
You probably have too hook the CurWeapon event, but I am not sure since I don't know how ZP works.

SnoW 07-29-2009 10:39

Re: I have a question about speeds.
 
Quote:

Originally Posted by Xellath (Post 884836)
You probably have too hook the CurWeapon event, but I am not sure since I don't know how ZP works.

Zombie plague sets speed every frame, in prethink if I remember right.

5c0r-|3i0 07-29-2009 11:17

Re: I have a question about speeds.
 
@ƒa†es™:
First ,make a new bool ( or not):
PHP Code:

new g_speed[33

Then use the zp_extra_item_selected forward to g_speed[id] came true :D
PHP Code:

public zp_extra_item_selected(player,itemid...)
if(
bla bla bla)
 
g_speed[player] = true (or ??) 

Then use Fakemeta forward...fm_playerprethink [ I don't remember]...To hook if user has already buy speed .
Then
set_user_maxspeed
Like the plugin in attachment ..But you really don't understand my idea.....
If anything wrong , please tell me :wink:

You should see some extra item about speed thing to see what others people did....
btw,do you know about scripting ?? :P

ƒa†es™ 07-29-2009 11:31

Re: I have a question about speeds.
 
Quote:

Originally Posted by 5c0r-|3i0 (Post 884871)
@ƒa†es™:
First ,make a new bool ( or not):
PHP Code:

new g_speed[33

Then use the zp_extra_item_selected forward to g_speed[id] came true :D
PHP Code:

public zp_extra_item_selected(player,itemid...)
if(
bla bla bla)
 
g_speed[player] = true (or ??) 

Then use Fakemeta forward...fm_playerprethink [ I don't remember]...To hook if user has already buy speed .
Then
set_user_maxspeed
Like the plugin in attachment ..But you really don't understand my idea.....
If anything wrong , please tell me :wink:

You should see some extra item about speed thing to see what others people did....
btw,do you know about scripting ?? :P


I don't get it with the hook,

How do i hook ??

Can you show me example codes.


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

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