09-29-2007, 02:04 AM | #1 |
Retired FF Staff
|
Next patch Lua stuff
Just making a note of these now - will possibly update this thread if more stuff is added/changed
The fix to :SetDamage() that DrEvil made will be in And i've added two callbacks: player_connected & player_disconnected player_connected is a global function and takes 3 parameters - name, ip, player index - and returns true/false based on if you want the player to be allowed to join the server or not. player_disconnected is a global function and takes 1 parameter - an actual player object [ie. CFFPlayer *] - and returns nothing with these two functions you should be able to track players joining/leaving through their entity indices (ie. the player index from player_connected and player:GetId() from player_disconnected)
__________________
Head of the Orca Revolution (TM) |
|
09-29-2007, 02:08 AM | #2 | |
Newb
|
Quote:
|
|
|
09-30-2007, 01:20 AM | #3 |
Retired FF Staff
|
Also adding a "DropToFloor" method. The parameter is just a CBaseEntity *.
So like: Code:
DropToFloor(flag_entity) -- where flag_entity is an actual flag object or something
__________________
Head of the Orca Revolution (TM) |
|
09-30-2007, 01:50 AM | #4 | |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Quote:
Does this include :GetDamageType()? |
|
|
09-30-2007, 12:00 PM | #5 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Posting this here because of the subject line. I think it would be good to have a Patch sticky so we can build anticipation and keep informed
Anyway, DrEvil just posted this in one of my other threads. He said they be fixin the setdamge for lua and he was even nice enough to give me the lua code This below turns off falldamage . . . . well, set it to zero. Dont work now, but it will with next patch. Code: function player_ondamage( player_entity, damageinfo ) if damageinfo:GetDamageType() == Damage.kFall then damageinfo:SetDamage(0) end end |
|
09-30-2007, 06:55 PM | #6 |
Join Date: Mar 2007
Posts Rated Helpful 0 Times
|
is there a way to disable flags in 4ctf when there are no players in one of the teams, becouse the flag whould be ungarderd and easy to take
|
|
09-30-2007, 07:46 PM | #7 | |
Retired FF Staff
|
Quote:
__________________
Head of the Orca Revolution (TM) |
|
|
09-30-2007, 10:07 PM | #8 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
So... any hints on when this patch is coming? I have some maps I'm just itching to make..
|
|
09-30-2007, 10:48 PM | #9 | |
Newb
|
Quote:
It's not like quadrocket_adam was ever meant to be easy, now was it? ;D |
|
|
10-01-2007, 12:00 AM | #10 |
Join Date: Sep 2007
Posts Rated Helpful 0 Times
|
Haha this is true.. I've already re-textured and re-made everything for adam3, now to do adam1, 2, 4, and quadpipe_adam.. haha
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|