Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Activate / Deactivate PT-Entrys?
Activate / Deactivate PT-Entrys? [message #328795] Fri, 02 May 2008 16:02 Go to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
Activate / Deactivated PT-Entrys?

Is it somehow possible, to activate / deactivate some PT-Entrys with a command or script???

I want to have an entry on one map, but not on the other map in 1 mod-package.

Should be, like activating/deact air units.

[Updated on: Sat, 03 May 2008 06:32]

Report message to a moderator

JFW_PT_Hide (changed topic/question) [message #328834 is a reply to message #328795] Sat, 03 May 2008 06:31 Go to previous messageGo to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
Found "JFW_PT_Disable", but cant get it to work???

If I use it on a map with standard buy-logic, nothing happens.

If I use it on my map with Expanded Vehicle Factory set of scripts by Matt Bailey "Whitedragon, the game crashes. It gives critical script error with wrong paramter position, but it is correct.


JFW_PT_Disable (script to disable a PT object on startup)
Player_Type (the player type to trigger on, 0 = Nod, 1 = GDI)
Type (type to disable)
Pos (position to disable)

JFW_PT_Disable_Death (script to disable a PT object when the thing this is attached to dies)
Player_Type (the player type to trigger on, 0 = Nod, 1 = GDI)
Type (type to disable)
Pos (position to disable)

The values for type are:
0 = characters
1 = vehicles
2 = equipment
3 = secret characters
4 = secret vehicles
5 = enlisted characters
6 = beacon
For types 0,1,2,3,4, pos corresponds to the position in the Purchase Settings in leveledit, e.g. 0 for pos means "entry 1" as labeled in leveledit.
For type 5, pos corresponds to the position in the Team Purcase Settings in leveledit, e.g. 0 for pos means "Enlisted 1" as labeled in leveledit.
For type 6, pos has no effect.
The hud ini script, the wireframe mode script and the PT scripts all require bhs.dll on the client to work

[Updated on: Tue, 06 May 2008 06:37]

Report message to a moderator

Re: Activate / Deactivate PT-Entrys? [message #328841 is a reply to message #328834] Sat, 03 May 2008 07:35 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
maybe look at the one wepons factory and aristrip uses if you didn't already
Re: Activate / Deactivate PT-Entrys? [message #328843 is a reply to message #328841] Sat, 03 May 2008 07:39 Go to previous messageGo to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
dont understand what you mean.
Re: Activate / Deactivate PT-Entrys? [message #328847 is a reply to message #328843] Sat, 03 May 2008 08:43 Go to previous messageGo to next message
ErroR is currently offline  ErroR
Messages: 2984
Registered: March 2008
Location: Moldova
Karma: 0
General (2 Stars)
rrutk wrote on Sat, 03 May 2008 17:39

dont understand what you mean.

Weapons factory have a script (or pt) if you destroy it you can't buy vehs it's disbled...

ahem maybe look at it's script

[Updated on: Sat, 03 May 2008 08:45]

Report message to a moderator

Re: Activate / Deactivate PT-Entrys? [message #329231 is a reply to message #328847] Tue, 06 May 2008 06:36 Go to previous messageGo to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
I changed now complete to sidebar & advanced weapon factory logic.

But i need the JFW_PT_Hide to work.

I tried it, but nothings happens......?
Re: Activate / Deactivate PT-Entrys? [message #329252 is a reply to message #328795] Tue, 06 May 2008 08:46 Go to previous messageGo to next message
bisen11 is currently offline  bisen11
Messages: 797
Registered: December 2004
Karma: 0
Colonel
I have no idea.

The only way around it that I can think of would be to make a bunch of those pts where you can only buy one thing.


http://i6.photobucket.com/albums/y206/bisen11/bisensubzerosig2.jpg
Re: Activate / Deactivate PT-Entrys? [message #329253 is a reply to message #328795] Tue, 06 May 2008 08:48 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
The PT is set up client side. You can stop people buying certain presets and disable the infantry/vehicle selection only. You can't disable the icons themselves.
Re: Activate / Deactivate PT-Entrys? [message #329320 is a reply to message #329253] Tue, 06 May 2008 14:35 Go to previous messageGo to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
And what for is JFW_Hide_PT?

It's for disabling PT-Icons, isnt it?

And the expanded Vehicle Factory set of scripts is also able to remove them...so it should be possible...

JFW_PT_Hide (script to hide an object on the sidebar on startup)
Player_Type (which player type to hide this for, 0 = nod, 1 = gdi
Preset (the name of the preset to hide)

JFW_PT_Hide_Death (script to hide an object on the sidebar when the thing its attached to dies)
Player_Type (which player type to hide this for, 0 = nod, 1 = gdi
Preset (the name of the preset to hide)

JFW_PT_Hide_Custom (script to hide an object on the sidebar when the thing its attached to gets a custom)
Player_Type (which player type to hide this for, 0 = nod, 1 = gdi
Preset (the name of the preset to hide)
Message (the message to look out for)


But damn, it does not work Sad

New PT-Sidebar (yes, the arrows are from APB):
index.php?t=getfile&id=6622&private=0


  • Attachment: Sidebar.jpg
    (Size: 145.29KB, Downloaded 150 times)

[Updated on: Wed, 07 May 2008 08:31]

Report message to a moderator

Re: Activate / Deactivate PT-Entrys? [message #329374 is a reply to message #329320] Wed, 07 May 2008 03:37 Go to previous message
OWA is currently offline  OWA
Messages: 647
Registered: May 2006
Location: W3D Hub
Karma: 0
Colonel

You'll need to ask the APB guys whether you can use their graphics before you release it (if you plan to).

Previous Topic: Server Side Map Edit
Next Topic: what is this?
Goto Forum:
  


Current Time: Fri Dec 20 00:31:42 MST 2024

Total time taken to generate the page: 0.00826 seconds