Raised This Month: $ Target: $400
 0% 

Ok, Starting to learn how to script and Have a few questions


Post New Thread Closed Thread   
 
Thread Tools Display Modes
dekken
Veteran Member
Join Date: Jul 2007
Old 03-04-2008 , 16:44   Re: Ok, Starting to learn how to script and Have a few questions
#31

wtf i did allmost the same like you did but just with other names!
Thanks iam gonna check what was wrong from first place and check how your code works.

edit:
Ok It works Fine!
now i understand it Thank you very MUCH!
but whats the Default moving speed? 250 or 240? O_o

Last question for today:

How do i make Ppls have sv_stepsize 999 When writing /stepsize
Or any other sv_thingy...
__________________
Signature Goes Here

Last edited by dekken; 03-04-2008 at 16:55.
dekken is offline
MattOG
Senior Member
Join Date: May 2005
Old 03-04-2008 , 16:59   Re: Ok, Starting to learn how to script and Have a few questions
#32

one thing...

I have basically fallen victim to starting off the way you did things and following it through without much thought. My bad.

Setting speed like this is not advised, in fact it down right doesn't work, due to the speed being reset on round start and weapon change. (Try it, turn on the speed, then switch weapon). I've seen it done in client_prethink before, not sure if this is the best way, as it gets processed a lot.
__________________

+Karma If I helped
MattOG is offline
dekken
Veteran Member
Join Date: Jul 2007
Old 03-04-2008 , 17:05   Re: Ok, Starting to learn how to script and Have a few questions
#33

Quote:
Originally Posted by MattOG View Post
one thing...

I have basically fallen victim to starting off the way you did things and following it through without much thought. My bad.

Setting speed like this is not advised, in fact it down right doesn't work, due to the speed being reset on round start and weapon change. (Try it, turn on the speed, then switch weapon). I've seen it done in client_prethink before, not sure if this is the best way, as it gets processed a lot.
Iam going to fix the Weapon change with CurWeapon
and To have the speed every round i think with HudReset or something?
i read about it somewhere...
Am i right? =\
__________________
Signature Goes Here
dekken is offline
MattOG
Senior Member
Join Date: May 2005
Old 03-04-2008 , 17:07   Re: Ok, Starting to learn how to script and Have a few questions
#34

If it's the reset HUD that causes the speed to be reset too then yes, if it's specifically a new round, and not the hud reset, then it's better to catch the new round using the method here: http://forums.alliedmods.net/showthread.php?t=42159

::EDIT::
Just tested and doing fullupdate in console (which causes the resethud) doesn't stop the speed, so i'm guessing it's done on a new round.... use the method on the link.

afaik there isn't a way to set a server command per player like that. A few things have been done in the fun module (gravity/speed etc..) but if they're not in there, i don't know a way to set them per player.
__________________

+Karma If I helped

Last edited by MattOG; 03-04-2008 at 17:12.
MattOG is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 03-04-2008 , 17:10   Re: Ok, Starting to learn how to script and Have a few questions
#35

As I said, everyone but _Master_ claims its impossible (since the player has already left when client_disconnect() is called). I'm keen to see if he produces what he claims, but I don't have a pressing need to PM him requesting that he does so at this time.
Lee is offline
MattOG
Senior Member
Join Date: May 2005
Old 03-04-2008 , 17:15   Re: Ok, Starting to learn how to script and Have a few questions
#36

Quote:
Originally Posted by Lee View Post
As I said, everyone but _Master_ claims its impossible (since the player has already left when client_disconnect() is called). I'm keen to see if he produces what he claims, but I don't have a pressing need to PM him requesting that he does so at this time.
ahh that's where I got lost it seems. I read somewhere it was called "just before" a client disconnects, which led me to believe that there may still be time...
__________________

+Karma If I helped
MattOG is offline
dekken
Veteran Member
Join Date: Jul 2007
Old 03-04-2008 , 19:54   Re: Ok, Starting to learn how to script and Have a few questions
#37

Whats the usage of CurWeapon and ResetHud?
could you make little script that is using both of them?
Thanks

Woah i never knew you could do:

PHP Code:
         if(cs_get_user_team(id) == CS_TEAM_XXX)
        {
         
Code Here
        
}
else
{
Code

__________________
Signature Goes Here
dekken is offline
dekken
Veteran Member
Join Date: Jul 2007
Old 03-05-2008 , 13:52   Re: Ok, Starting to learn how to script and Have a few questions
#38

Quote:
Originally Posted by dekken View Post
Whats the usage of CurWeapon and ResetHud?
could you make little script that is using both of them?
Thanks
[/php]
__________________
Signature Goes Here
dekken is offline
dekken
Veteran Member
Join Date: Jul 2007
Old 03-05-2008 , 21:11   Re: Ok, Starting to learn how to script and Have a few questions
#39

Blah nvm
i give up trying to get help in here
ill just keep reading and w/e...
Thanks


(DONT REPLY)
__________________
Signature Goes Here
dekken is offline
Closed Thread



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 18:34.


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