Raised This Month: $ Target: $400
 0% 

Prokreedz , checkpoint while ducking


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 01-31-2007 , 10:06   Re: Prokreedz , checkpoint while ducking
Reply With Quote #4

but if you duck when you teleport to that checkpoint and then get up you wont get stuck...

EDIT:
This code forces the people to duck when teleporting to a(ny) checkpoint.

line 400 somewhere.
Replace "entity_set_origin(id,checkpoints[id-1][cp])" with this code.
Code:
if ( entity_get_int(id, EV_INT_flags) & FL_DUCKING ) {     // First check, maby they're allready ducking.     entity_set_origin(id,checkpoints[id-1][cp]) } else {     client_cmd(id, "+duck")     entity_set_origin(id,checkpoints[id-1][cp])     client_cmd(id, "-duck") }
Though, I don't know if it will work. The player might not duck fast enough. But I think that won't happen.

Last edited by [ --<-@ ] Black Rose; 01-31-2007 at 10:17.
[ --<-@ ] Black Rose is offline
 



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 00:41.


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