Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » The Flags in Capture the Flag
The Flags in Capture the Flag [message #66392] Fri, 13 February 2004 12:40 Go to next message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
Anyone know (or make a good guess) how the Flags are drawn in the CTF games.

I know you can download an extra file for a high quality image, but the flags are drawn even without the download.

How did they do that ?

Thanks,
Gib
The Flags in Capture the Flag [message #66443] Fri, 13 February 2004 21:38 Go to previous messageGo to next message
Cpo64 is currently offline  Cpo64
Messages: 1246
Registered: February 2003
Location: Powell River, B.C. Canada
Karma: 0
General (1 Star)
I was wondering that while ago aswell,

Hodyadodat?


-->
The Flags in Capture the Flag [message #66694] Sun, 15 February 2004 11:06 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Saver-Side scripting. The file is probably in the always.dat

Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
The Flags in Capture the Flag [message #66732] Sun, 15 February 2004 14:03 Go to previous messageGo to next message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
General Havoc

Saver-Side scripting. The file is probably in the always.dat


Ok thanks,

Any idea on the mesh name?
If not I will install the tools and dig through them.

Thanks,
Gib
The Flags in Capture the Flag [message #66757] Sun, 15 February 2004 16:32 Go to previous messageGo to next message
NeoX is currently offline  NeoX
Messages: 408
Registered: April 2003
Location: Canada, Ontario, Acton
Karma: 0
Commander
Saver Side i thought it was server side. :rolleyes:
The Flags in Capture the Flag [message #66761] Sun, 15 February 2004 16:36 Go to previous messageGo to next message
vloktboky is currently offline  vloktboky
Messages: 290
Registered: February 2003
Location: Kentucky, USA
Karma: 0
Recruit

It's the marker flag. Its Preset is Object -> Simple -> Marker Flag, w3d file is o_flag.w3d.
The Flags in Capture the Flag [message #66763] Sun, 15 February 2004 18:45 Go to previous messageGo to next message
Aircraftkiller is currently offline  Aircraftkiller
Messages: 8213
Registered: February 2003
Karma: 1
General (5 Stars)
That's what I thought it was. The marker flag was meant to be used to flag off areas in LE that needed attention.
The Flags in Capture the Flag [message #66815] Mon, 16 February 2004 01:18 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
Yeah that's what the dev's used it for but it has the correct settings for a flag. When Greg was jiggering around with the CTF script he wrote, he said that the object for the flag should be similar to the marker flag in terms of it's settings and W3D settings.

The marker flag is a valid W3D file so if you pull in the W3D name via a script then you can make it in game.

OT: vloktboky going to consider writing your CTF script for use in the scripts.dll? Not the whole BR.Net setup, but the CTF method you use, Dante's doesn't allow the flag to be picked up by players once dropped.

Your script behaves much like Gregs should but as far as I'm aware Gregs still doesn't work in game correctly.


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
The Flags in Capture the Flag [message #67072] Tue, 17 February 2004 14:16 Go to previous messageGo to next message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
A couple more questions:


Am I right in assuming that the existing scripts have disabled collisions for the flag in some way, if so how?
I have tried disable_physical_collisions() and disable_all_collisions() and I still cant walk through the flags.



How do the existing scripts track the movement of the player?

I could add a timer to the player object that updates the flag position every tenth of a second, however the existing scripts look like they have a better solution as the flag appears to move more smoothly.
Additionally I don't like this method because of the overhead of running a timer 10 times a second.


Thanks,
Gib

PS Is the source for the existing CTF scripts available anywhere ?
The Flags in Capture the Flag [message #67078] Tue, 17 February 2004 15:07 Go to previous messageGo to next message
vloktboky is currently offline  vloktboky
Messages: 290
Registered: February 2003
Location: Kentucky, USA
Karma: 0
Recruit

General Havoc

OT: vloktboky going to consider writing your CTF script for use in the scripts.dll? Not the whole BR.Net setup, but the CTF method you use, Dante's doesn't allow the flag to be picked up by players once dropped.

Your script behaves much like Gregs should but as far as I'm aware Gregs still doesn't work in game correctly.


I've been working on a version for the general public.

gibberish

A couple more questions:


Am I right in assuming that the existing scripts have disabled collisions for the flag in some way, if so how?
I have tried disable_physical_collisions() and disable_all_collisions() and I still cant walk through the flags.



How do the existing scripts track the movement of the player?

I could add a timer to the player object that updates the flag position every tenth of a second, however the existing scripts look like they have a better solution as the flag appears to move more smoothly.
Additionally I don't like this method because of the overhead of running a timer 10 times a second.


Thanks,
Gib

PS Is the source for the existing CTF scripts available anywhere ?


The marker flag has no physics on it I believe. However, I am using Disable_All_Collisions() to ensure they are all turned off.

To make an object follow a player, you just have to attach the object to a bone. A timer is not needed. The flag in my version of CTF is attached to the right hand, or "c R Hand". An example would be:

GameObject *AttachedFlag = Commands->Create_Object_At_Bone(obj,"CtfFlag","c R Hand");
Commands->Attach_To_Object_Bone(AttachedFlag, obj, "c R Hand");


A complete list of the bones you can use:
Back Gun = backgunbone
Back Pouch = bone for bag
Head = c Head
Neck = c Neck
Left Clavicle = c L Clavicle
Left Upper Arm = c L UpperArm
Left Forearm = c L Forearm
Left Hand = c L Hand
Right Clavicle = c R Clavicle
Right Upper Arm = c R UpperArm
Right Forearm = c R Forearm
Right Hand = c R Hand
Spine1 (Upper) = c Spine1
Spine (Lower) = c Spine 
Pelvis =  c Pelvis
Left Thight = c L Thigh
Left Calf = c L Calf
Left Foot = c L Foot
Right Thight = c R Thigh
Right Calf = c R Calf
Right Foot = c R Foot
The Flags in Capture the Flag [message #67092] Tue, 17 February 2004 16:34 Go to previous messageGo to next message
General Havoc is currently offline  General Havoc
Messages: 1564
Registered: February 2003
Location: Birmingham, England, Unit...
Karma: 0
General (1 Star)
That should e handy then if you can write a new CTF one that works like Gregs should have done.

About Gregs script (GTH_CTF_Object2), can anyone actually confirm that it doesn't work or are we all still assuming. I've tested it numerous times, but not knowing what some of the parameters do it has semi-worked, meaning the flag picks up, drop etc. but the game doesn't end. It has a lot of event ID parameters and stuff, which I have no clue what they do.


Visit my website at http://renhelp.laeubi-soft.de powered by laeubi.de
"SHUT UP AND MOD" - Dante
"ACK is the Simon Cowell of modding" - Ultron10
Scripts.dll Debugger, Map Scripter and Tutorial writer

Computer Science Bsc
Aston University in Birmingham, UK
The Flags in Capture the Flag [message #67133] Tue, 17 February 2004 20:24 Go to previous message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
Vloktboky,

Thanks, that's a big help,
Gib

PS Thanks for working on the public version of capture the flag
I am working on a couple of ideas, but they are not traditional CTF.
Previous Topic: Wath is the probleme with Ren Alert Website ?
Next Topic: Alpha Blend problem
Goto Forum:
  


Current Time: Fri Dec 27 12:20:25 MST 2024

Total time taken to generate the page: 0.00835 seconds