This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

increasing player speed after sprite has played


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sephiroth_nightmare
Junior Member
Join Date: Apr 2005
Old 04-30-2005 , 05:02   increasing player speed after sprite has played
Reply With Quote #1

hi all, its me again .

well thanks to your help i got my sprite plugin working.

but i would like to addon to it with a few more features.

but i dont know how to do it >_<.

what i want to do is when the sprite plays, the player cant move and after the sprite is done he can move again but at like double his orginal speed?

can any body help me as i have no idea how to do this >_<.

thanks
sephiroth_nightmare is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 04-30-2005 , 05:29  
Reply With Quote #2

For ESF, right?

Then, after sprite :

Code:
new speed = get_pdata_int(id, 459) // use this if in normal new speed2 = get_pdata_int(id, 462 ) // use this if in ssj or higher set_pdata_int(id, 459, speed * 2 ) // multiply normal speed by 2 set_pdata_int(id, 462, speed2 * 2 ) // multiply form2/ssj speed by 2

in sprite

Code:
set_pdata_int(id, 459, 0) set_pdata_int(id, 462, 0)
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
sephiroth_nightmare
Junior Member
Join Date: Apr 2005
Old 04-30-2005 , 05:54  
Reply With Quote #3

thanks lynx.

also could you tell me how to get passed the model lock on esf? i still cant find away to get around it >_<
sephiroth_nightmare is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 04-30-2005 , 05:57  
Reply With Quote #4

You gotta create new entity which will constantly follow player. Then, you gotta hide player.

Code:
new avatars[32] public create_avatar(id) { avatars[id] = create_entity( "env_model" ); entity_set_int( avatars[id], EV_INT_movetype, MOVETYPE_FOLLOW ); entity_set_edict( avatars[id], EV_ENT_aiment, id ); entity_set_model( avatars[id], "modelpathhere.mdl" ) }
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
sephiroth_nightmare
Junior Member
Join Date: Apr 2005
Old 04-30-2005 , 06:03  
Reply With Quote #5

sweet thanks.

and is it possible to have a sprite hurt a player? like as in a beam or something?
*edit*

i just had an idea on something i want to happen, so say a command is "spawn_flame" i want a flame sprite to spawn on the player and when the player moves the sprite follows him, kinda like a trail?
how would i do that?
sephiroth_nightmare is offline
LynX
Veteran Member
Join Date: Oct 2004
Old 04-30-2005 , 07:18  
Reply With Quote #6

Look @ Admin All in one plugin.
If you want sprite to takes damage, just create a entity and in pfn_touch that takes 1 hp every second.
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
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 15:47.


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