Raised This Month: $ Target: $400
 0% 

BF2 Rank Mod 1.5.5 [4/21/11] (pRED*)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 04-26-2007 , 21:35   Re: Bf2 Rank Mod
Reply With Quote #1

pRED* | NZ:

- Delay the csdm_PostSpawn give_userweapon a bit, so that csdm doesn't overwrite what is done with bf2's give_userweapon.

I used:
set_task(0.5, "give_userweapon", player);
but you could be able to set it shorter... Otherwise csdm equip if used will not let bf2 set hp or give a scout


- In give_userweapon, i would not get user hp first then add a number. Because a hud can reset more then once giving them 100 + 30 the first time then 130 + 30 the second time. For example a player respawns from csdm (hudreset) then round ends (hudreset2) while still alive. since players are supposed to start with 100 hp when they spawn, just use 100+# instead getting their hp then +


- I think sql should be an editable define instead of a cvar, mainly because you require them to load the sql module even if they are using it when you compile with the include. Could be another way around it but not sure, never bothered to see if module autoload could be blocked.
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
pRED*
Join Date: Dec 2006
Old 04-26-2007 , 23:36   Re: Bf2 Rank Mod
Reply With Quote #2

Cheers Vittu.

The first two have been fixed already.
As for the compile define.. Probably will do that. Just about to do a large amount of editing the saving stuff (need to save way more now..) so i'll do that then.

I should have a fully functional alpha release of 1.4 on my server this weekend and release once i've bug tested it properly
pRED* is offline
pRED*
Join Date: Dec 2006
Old 04-27-2007 , 06:42   Re: Bf2 Rank Mod
Reply With Quote #3

Test version for vittu and anyone else who is keen (crashes..)
Attached Files
File Type: zip bf21.4alpha.zip (226.2 KB, 130 views)
pRED* 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 20:17.


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