Fortress Forever

Go Back   Fortress Forever > Editing > Mapping

Reply
 
Thread Tools Display Modes
Old 09-29-2007, 02:04 AM   #1
Mulchman MM
Retired FF Staff
 
Mulchman MM's Avatar
 
Join Date: Dec 2004
Location: Lacey, WA
Posts Rated Helpful 0 Times
Send a message via ICQ to Mulchman MM Send a message via AIM to Mulchman MM Send a message via MSN to Mulchman MM Send a message via Yahoo to Mulchman MM Send a message via Skype™ to Mulchman MM
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)
Mulchman MM is offline   Reply With Quote


Old 09-29-2007, 02:08 AM   #2
AltPluzF4
Newb
 
AltPluzF4's Avatar
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Send a message via ICQ to AltPluzF4 Send a message via AIM to AltPluzF4 Send a message via MSN to AltPluzF4 Send a message via Yahoo to AltPluzF4
Quote:
Originally Posted by Mulchman MM
And i've added two callbacks:
player_connected & player_disconnected
...and that's why we love Mulchman!
AltPluzF4 is offline   Reply With Quote


Old 09-30-2007, 01:20 AM   #3
Mulchman MM
Retired FF Staff
 
Mulchman MM's Avatar
 
Join Date: Dec 2004
Location: Lacey, WA
Posts Rated Helpful 0 Times
Send a message via ICQ to Mulchman MM Send a message via AIM to Mulchman MM Send a message via MSN to Mulchman MM Send a message via Yahoo to Mulchman MM Send a message via Skype™ to Mulchman MM
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)
Mulchman MM is offline   Reply With Quote


Old 09-30-2007, 01:50 AM   #4
[P]Infidel
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Quote:
Originally Posted by Mulchman MM
The fix to :SetDamage() that DrEvil made will be in


Does this include :GetDamageType()?
[P]Infidel is offline   Reply With Quote


Old 09-30-2007, 12:00 PM   #5
sir_frags
 
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
sir_frags is offline   Reply With Quote


Old 09-30-2007, 06:55 PM   #6
stino
 
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
stino is offline   Reply With Quote


Old 09-30-2007, 07:46 PM   #7
Mulchman MM
Retired FF Staff
 
Mulchman MM's Avatar
 
Join Date: Dec 2004
Location: Lacey, WA
Posts Rated Helpful 0 Times
Send a message via ICQ to Mulchman MM Send a message via AIM to Mulchman MM Send a message via MSN to Mulchman MM Send a message via Yahoo to Mulchman MM Send a message via Skype™ to Mulchman MM
Quote:
Originally Posted by [P]Infidel


Does this include :GetDamageType()?
Yeah, DrEvil has exposed the damage types.
__________________
Head of the Orca Revolution (TM)
Mulchman MM is offline   Reply With Quote


Old 09-30-2007, 10:07 PM   #8
Adam-g1
 
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..
Adam-g1 is offline   Reply With Quote


Old 09-30-2007, 10:48 PM   #9
AltPluzF4
Newb
 
AltPluzF4's Avatar
 
Join Date: Sep 2007
Posts Rated Helpful 0 Times
Send a message via ICQ to AltPluzF4 Send a message via AIM to AltPluzF4 Send a message via MSN to AltPluzF4 Send a message via Yahoo to AltPluzF4
Quote:
Originally Posted by Adam-g1
So... any hints on when this patch is coming? I have some maps I'm just itching to make..
<3 Make them, then when the patch is out, you can add the lua snippet and test / adjust the jumps.
It's not like quadrocket_adam was ever meant to be easy, now was it? ;D
AltPluzF4 is offline   Reply With Quote


Old 10-01-2007, 12:00 AM   #10
Adam-g1
 
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
Adam-g1 is offline   Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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. The time now is 07:13 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.