Raised This Month: $ Target: $400
 0% 

Remove the speed when spawn(surf)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 05-01-2011 , 18:05   Remove the speed when spawn(surf)
Reply With Quote #1

ok,i know my english is f**king bad,sry about that

here is a youtube video
http://www.youtube.com/watch?v=yen4h...eature=related 0:03
http://www.youtube.com/watch?v=OLyAj2THDkk 0:16

when player touch that place ,his speed will become faster

if player touch there,at the same time they use the respawn function
the speed is still become faster when they spawn
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!

Last edited by biscuit628; 05-01-2011 at 18:10.
biscuit628 is offline
Old 05-01-2011, 21:52
kNowo
This message has been deleted by kNowo. Reason: use code on post #4
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 05-02-2011 , 00:31   Re: Remove the speed when spawn(surf)
Reply With Quote #2

Quote:
Originally Posted by kNowo View Post
are you sure? AFAIK, it will only make player move faster

PHP Code:
#include <amxmodx>
#include <engine>

public plugin_init()
{
    new 
mapname[32]
    
get_mapname(mapnamecharsmax(mapname))

    if(
equali(mapname"surf_water_run"))
        
remove_entity(find_ent_by_model(-1"trigger_push""*3"))

"trigger_push" is the enity's classname.
"*3" is the model number. every entity has a unique model number so they wont mixed up.
You can use BSP Viewer to view those stuff
is that any other way to solve that except remove the class?
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-02-2011 , 01:58   Re: Remove the speed when spawn(surf)
Reply With Quote #3

I thought you had some video of that bug.
May be you should reset velocity when you respawn the player, also which respawn plugin are you using ?

PHP Code:
    RegisterHam(Ham_Spawn"player""CBasePlayer_Spawn_Post"true)
}

public 
CBasePlayer_Spawn_Postid )
{
    if( 
is_user_alive(id) )
    {
        new 
iFlags pev(idpev_flags)
        if( 
iFlags FL_BASEVELOCITY )
        {
            
set_pev(idpev_flagsiFlags & ~FL_BASEVELOCITY)
        }
        
set_pev(idpev_velocity0)
        
set_pev(idpev_basevelocity0)
    }

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 05-02-2011 at 02:02.
ConnorMcLeod is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 05-02-2011 , 03:02   Re: Remove the speed when spawn(surf)
Reply With Quote #4

i dont get it...is this "bug" exists? explain to me
kNowo is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-02-2011 , 03:54   Re: Remove the speed when spawn(surf)
Reply With Quote #5

biscuit628
Do you need to reset player speed after he touched trigger_push or you want to create permanent speed boost for player?
__________________

SonicSonedit is offline
jimaway
Heeeere's Jimmy!
Join Date: Jan 2009
Location: Estonia
Old 05-02-2011 , 04:20   Re: Remove the speed when spawn(surf)
Reply With Quote #6

Quote:
Originally Posted by kNowo View Post
i dont get it...is this "bug" exists? explain to me
yes it exists, ive seen it myself, when you're in trigger_push right before round ends you get to fly off from your spawn doesent happen too often tho
jimaway is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 05-02-2011 , 10:12   Re: Remove the speed when spawn(surf)
Reply With Quote #7

I just tested ConnorMcLeod's code and it works.

Last edited by matsi; 05-03-2011 at 01:21.
matsi is offline
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 05-02-2011 , 21:30   Re: Remove the speed when spawn(surf)
Reply With Quote #8

Quote:
Originally Posted by jimaway View Post
yes it exists, ive seen it myself, when you're in trigger_push right before round ends you get to fly off from your spawn doesent happen too often tho
oh my bad. never happens to me and i doesn't really understand first post.
kNowo is offline
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 11:45.


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