Raised This Month: $ Target: $400
 0% 

bouncing player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-26-2007 , 17:20   bouncing player
Reply With Quote #1

is it possible to make a player bounce as if he were in a bubble?

i tried:
Code:
set_pev(id, pev_movetype, MOVETYPE_BOUNCE);

but that didnt work at all and i dont know what to do...

edit:
also, how would i get a players id if i found him/her this way:

Code:
new ent; while((ent = fm_find_ent_in_sphere(ent, "player", 1000.0)) {    // get player's id and continue with coding... }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 09-26-2007 at 19:58.
Exolent[jNr] is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-27-2007 , 08:36   Re: bouncing player
Reply With Quote #2

Player id finded is "ent" and you must check if he is connected & valid! ;)
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 09-27-2007 , 08:42   Re: bouncing player
Reply With Quote #3

A player's id is the same as their entity id, as Alka said ( I think )

so player 1 = entity 1.
purple_pixie is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-27-2007 , 09:36   Re: bouncing player
Reply With Quote #4

Nope, i don't think player 1 is ent 1. But in that case when finding an ent in sphere , ent finded is player index & as i said
Quote:
Originally Posted by Alka
he is connected & valid!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 09-27-2007 , 09:39   Re: bouncing player
Reply With Quote #5

Quote:
Originally Posted by Alka View Post
Nope, i don't think player 1 is ent 1. But in that case when finding an ent in sphere , ent finded is player index & as i said
Player 1 IS ent 1.
Is this hard to understand?
[ --<-@ ] Black Rose is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-27-2007 , 10:12   Re: bouncing player
Reply With Quote #6

You will never understand BLACK-NB-ROSE
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 09-27-2007 , 11:48   Re: bouncing player
Reply With Quote #7

I allready understood it. So your point being?
[ --<-@ ] Black Rose is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 09-27-2007 , 16:24   Re: bouncing player
Reply With Quote #8

ok thanks guys but what about making a player bounce?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 09-28-2007 , 09:09   Re: bouncing player
Reply With Quote #9

My guess is that MOVEMENT_BOUNCE doesn't work with players.
But I've never tryed it myself.

This is not a working code, ent is undefined.
Code:
#include <amxmodx> #include <fakemeta> public test() {         new ent;         new Float:origin[3], Float:p_origin[3];     pev(ent, pev_origin, origin);         new i, maxplayers = get_maxplayers()         while ( i++ < maxplayers ) {                 if ( ! is_user_connected(i) || ! is_user_alive(i) )             continue;                 pev(ent, pev_origin, origin);                 if ( get_distance() > 1000 )             continue;                 set_pev(i, pev_movetype, MOVETYPE_BOUNCE)     } }

Last edited by [ --<-@ ] Black Rose; 09-28-2007 at 09:36.
[ --<-@ ] Black Rose is offline
Sylwester
Veteran Member
Join Date: Oct 2006
Location: Poland
Old 09-28-2007 , 14:26   Re: bouncing player
Reply With Quote #10

check this plugin:
http://forums.alliedmods.net/showthread.php?t=21897
it may contain the code you need
__________________
Impossible is Nothing
Sylwester 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 16:12.


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