Raised This Month: $ Target: $400
 0% 

velocity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-28-2006 , 17:40   velocity
Reply With Quote #1

hi i would learn about velocity and what it does because i looked at the docs and the inc and it doesn't show much about it my point to this is to make a player speed because set_user_maxspeed doesn't work :\
wonsae is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-28-2006 , 18:01  
Reply With Quote #2

What are you trying to do?
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-28-2006 , 18:01  
Reply With Quote #3

I want to speed up players in TS
wonsae is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-28-2006 , 18:02  
Reply With Quote #4

Show me how you're using set_user_maxspeed.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-28-2006 , 18:15  
Reply With Quote #5

Code:
set_user_maxspeed(id,1000)
the only way to speed him up with this is to go right and left and i don't like that
wonsae is offline
Batman/Gorlag
Senior Member
Join Date: Aug 2005
Old 04-28-2006 , 18:18  
Reply With Quote #6

Just to let you know it should be

Code:
set_user_maxspeed(id, 1000.0)

not 1000. Otherwise you'll get a tag mismatch warning.
__________________
GRR If only the amxmod programming were in Java.....
Java and C used to be two different languages, now Java is turning into another C. My logevent plugin
Batman/Gorlag is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-28-2006 , 18:18  
Reply With Quote #7

yeah.. I meant that... but still it only speeds with right and left buttons
wonsae is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-28-2006 , 18:20  
Reply With Quote #8

This is an example of what I do with the knife in my server:
Code:
#include <amxmodx> #include <fun> public plugin_init() {   register_plugin("test" , "0.1" , "v3x");   register_event("CurWeapon" , "event_CurWeapon" , "b" , "1=1" , "2=29"); // 29 = CSW_KNIFE } public event_CurWeapon(id) {   if(!is_user_alive(id))     return PLUGIN_CONTINUE;   set_user_maxspeed(id , get_user_maxspeed(id) + 75.0);   return PLUGIN_CONTINUE; }
Edit: Just saw your latest post
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
wonsae
Senior Member
Join Date: Jan 2006
Location: Behind you >:D
Old 04-28-2006 , 18:24  
Reply With Quote #9

So... could you help me understand velocity?
wonsae is offline
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 04-28-2006 , 19:09  
Reply With Quote #10

maxspeed allows you to set a player's top speed (pretty much how fast he runs) except whenever the player changes weapons HL changes the player's maxspeed according to what the maxspeed of the weapon is. That's why v3x hooked curweapon there. Now setting maxspeed will do shit AMXX side unless you do:
Code:
set_cvar_num("sv_maxspeed",1000)

end of talking.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
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 04:59.


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