Re: Parachute function [message #311642 is a reply to message #311624] |
Thu, 17 January 2008 09:48 |
|
wittebolx
Messages: 332 Registered: May 2007 Location: the netherlands
Karma: 0
|
Recruit |
|
|
reborn wrote on Thu, 17 January 2008 16:48 | Right ok, I will see what I can do to locate the problem. But in actual fact you should not really be able to attach the script to the player with a chat hook. I thought you would attach it to the player when they exit a vehichle and the vehichle preset name equals cnc_GDI_orca or whatever...
If I have time I will write the rest and post it here.
|
the chat hook is in there because i dont know where to begin coding the parachute to only let it work when people are falling
thx for the help reborn.
http://www.wittebolx.com
|
|
|
Re: Parachute function [message #311782 is a reply to message #301225] |
Thu, 17 January 2008 20:28 |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
Going off what reborn said.. (but @wittebolx)
(I'm not entirely sure how to code this tbh...)
What you'd do is if a player is if the player is in a VOTL vehicle and they exit the vehicle, use reborn's Get_Random_Building() function and get the position of that building. Take the z-axis value from post positions of the object and building and subtract them. If the values are more than 8.0f meters off the ground, then deploy parachute.
Again, I'm NOT sure how to exactly code that but that is how I would rig it if I did know.
~MathK1LL
P.S. (@anyone)
I'm not doing anymore Renegade scripting so, if you ask me to do coding for you, I will say NO.
|
|
|
Re: Parachute function [message #330435 is a reply to message #301225] |
Tue, 13 May 2008 17:55 |
_SSnipe_
Messages: 4121 Registered: May 2007 Location: Riverside Southern Califo...
Karma: 0
|
General (4 Stars) |
|
|
i cant get it to work
1>LINK : warning LNK4224: /OPT:NOWIN98 is no longer supported; ignored
1>gmscripts.obj : error LNK2005: "void __cdecl ObjectHookCall(void *,unsigned char *)" (?ObjectHookCall@@YAXPAXPAE@Z" target="_blank">>@Z) already defined in gmmain.obj
1>Searching libraries
1>scripts.dll : fatal error LNK1169: one or more multiply defined symbols found
1>Creating browse information file...
1>Microsoft Browse Information Maintenance Utility Version 9.00.21022
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://c:\Users\Lil Blueyes\Desktop\SSGM Source\SSGM Source\SSGM Source\tmp\scripts\debug\BuildLog.htm"
1>SSGM - 2 error(s), 1 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
[Updated on: Tue, 13 May 2008 18:04] Report message to a moderator
|
|
|