PDA

View Full Version : Be a bird



TheRedBaron
Aug 8 2003, 19:22
i played a server where i was a bird when i died and i could fly around like a hello. where can i get this

SpeedyDonkey
Aug 8 2003, 19:24
i played a server where i was a bird when i died and i could fly around like a hello. where can i get this
get it? you have it http://forums.bistudio.com/oldsmileys/smile_o.gif If you don't have any respawn in multiplayer you'll automaticly become a bird when you die (in mp only)

TheRedBaron
Aug 8 2003, 19:32
oh thanks for being speedy http://forums.bistudio.com/oldsmileys/smile_o.gif

Mister Frag
Aug 8 2003, 21:18
I can't believe that for as long as you have had the game, you've never seen this before! http://forums.bistudio.com/oldsmileys/wow_o.gif

bn880
Aug 8 2003, 22:10
What I can't believe is that someone was actually happy to see that bird. I remember for the longest time trying to figure out how to get rid of that thing and respawn instead. OFP without a command reference and large forums is a pain in the ass. http://forums.bistudio.com/oldsmileys/smile_o.gif Or sometimes with as well. http://forums.bistudio.com/oldsmileys/wink_o.gif

Winters
Aug 8 2003, 23:36
But if it wasnt for a lack of manuals we would not have this great community. What i wanna know is how to make a bird in a cutscene so i can do some John Woo trademark stuff. Yes i know he uses doves and these are seagulls, so what http://forums.bistudio.com/oldsmileys/tounge_o.gif

bn880
Aug 9 2003, 00:15
Check this out:<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">; Seagull v.1.40
; Author&#58; Petroizki.
; E-Mail&#58; petroizki@<hidden>
; Requires OFP version&#58; 1.40
;
; PARAMETERS&#58; &#91;TRIGGER_NAME, OBJECT, NUMBER_OF_BIRDS, AREA_WIDTH, SPECIAL_FEATURE, SPECIAL_VARIABLE&#93;
; EXAMPLE&#58; &#91;seagulls, player, 20, 500, &#34;&#34;&#93; exec &#34;seagulls140.sqs&#34;
; EXAMPLE&#58; &#91;seagulls, player, 20, 500, &#34;FLYING&#34;&#93; exec &#34;seagulls140.sqs&#34;
; EXAMPLE&#58; &#91;seagulls, player, 20, 500, &#34;LANDED&#34;, 30&#93; exec &#34;seagulls140.sqs&#34;
; NOTE. SPECIAL_VARIABLE is only needed with &#34;LANDED&#34; special feature
; When you want seagulls to die, give value &#39;true&#39; for global variable g_bExit &#40;g_bExit = true&#41;.
; NOTE&#58; This script changes g_bExit variable automatically to &#39;false&#39; in beginning.
;
; TRIGGER_NAME&#58; Make sure you use triggers name instead of &#39;this&#39;.
;
; OBJECT&#58; Object for middle point on rectangle. If you want invisible middle point, use &#39;Game Logic&#39; which initialization is &#39;this SetDammage 1&#39;
; player = DEFAULT
;
; NUMBER_OF_BIRDS&#58; ...Well put at least 1...
; 1 = DEFAULT
;
; AREA_WIDTH&#58; Width and height of the area, which in the seagulls are flying.
; 500 = DEFAULT
;
; SPECIAL_FEATURE strings&#58;
; &#34;&#34; = DEFAULT
; &#34;FLYING&#34; = Bird just fly, doesn&#39;t ever land
; &#34;GROUP_FLY&#34; = Birds fly around in group, won&#39;t land
; &#34;LANDED&#34; = Bird is landed, takes off only if human approaches and lands again if human is far enough, birds start randomly around
; uses SPECIAL_VARIABLE, to define the area were seagulls want always land.
; &#34;SEA&#34; = Bird doesn&#39;t land, flyis often very low
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;DEBUGGER = false
requiredVersion &#34;1.40&#34;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Global variables
g_oTrigger = _this select 0
g_oObject = _this select 1
g_nSeagull = _this select 2
g_nArea = _this select 3
g_nArea = abs&#40;g_nArea&#41;
g_strSpecial = _this select 4

g_nAltitude = 50
?g_strSpecial == &#34;SEA&#34; &#58; g_nAltitude = 0
g_nAreaDiv2 = g_nArea / 2
g_nAreaMax = g_nArea * 2
g_bChaseMe = false
g_nChaseMe = 0
g_oChaseMe = player
g_bExit = false
g_nExitReport = 0
g_bGroupLand = false
g_oGroupLand = player
g_bHuman = false
g_nHumanTime = 0
g_xPosition = &#40;getPos g_oObject&#41; select 0
g_yPosition = &#40;getPos g_oObject&#41; select 1
g_aSeagull = &#91;&#93;
g_nAreaSpecial = 0
g_nAreaSpecialDiv2 = 0
g_posSpecial = &#40;getPos g_oObject&#41;

; Check limits
?g_nArea &#60; 0.1 &#58; g_nArea = 500; hint format &#91;&#34;The area for seagulls can&#39;t be less than 0.1&#92;nDEFAULT 500 set.&#34;
?isNull g_oObject &#58; g_oObject = player; hint &#34;The object for seagulls can&#39;t be NULL&#92;nDEFAULT player set.&#34;
?g_nSeagull &#60; 1 &#58; g_nSeagull = 1; hint &#34;0 seagulls can&#39;t be created&#92;nDEFAULT 1 set.&#34;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Seagull creation loop
_oNewSeagull = objNull
_xPosition = 0

_nAreaSpecialDiv2 = _nAreaSpecial / 2
?g_strSpecial == &#34;LANDED&#34; &#58; g_nAreaSpecial = _this select 5; g_nAreaSpecial = abs&#40;g_nAreaSpecial&#41;; g_nAreaSpecialDiv2 = g_nAreaSpecial / 2

_i = g_nSeagull
#Creation
&#59; Get seagulls starting position
?_i % 2 == 0 &#58; _xPosition = g_xPosition + g_nAreaDiv2; goto &#34;Creation1&#34;
_xPosition = g_xPosition - g_nAreaDiv2
#Creation1
&#59; Create seagull
?g_strSpecial &#33;= &#34;LANDED&#34; &#58; _oNewSeagull = &#34;SeaGull&#34; camCreate &#91;_xPosition, g_yPosition, 0&#93;; goto &#34;Creation2&#34;
&#59; We want to start landed, so let&#39;s put seagulls randomly around
_xPosition = g_xPosition + &#40;random g_nAreaSpecial&#41; - g_nAreaSpecialDiv2
_yPosition = g_yPosition + &#40;random g_nAreaSpecial&#41; - g_nAreaSpecialDiv2
_oNewSeagull = &#34;SeaGull&#34; camCreate &#91;_xPosition, _yPosition, 0&#93;
_oNewSeagull setDir &#40;random 360&#41;
_oNewSeagull camCommand &#34;landed&#34;
#Creation2
&#59; Save seagull&#39;s array
g_aSeagull = g_aSeagull + &#91;_oNewSeagull&#93;
&#59; Give brains for seagull
&#91;_oNewSeagull&#93; exec &#34;seagull140.sqs&#34;
_i = _i - 1
~.02
?_i &#62; 0 &#58; goto &#34;Creation&#34;

; We wanna fly in group&#33;
?g_strSpecial == &#34;GROUP_FLY&#34; &#58; g_oChaseMe = _oNewSeagull; g_bChaseMe = true

_i = nil
_xPosition = nil
_nAreaSpecialDiv2 = nil
?g_strSpecial &#33;= &#34;LANDED&#34; &#58; goto &#34;MainLoop&#34;
~10
goto &#34;MainLoop&#34;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Main loop
#MainLoop
~10
?g_bExit &#58; goto &#34;Destruction&#34;
&#59; Timeout for human alarm
?g_nHumanTime &#60; time &#58; g_bHuman = false
&#59; Timeout for chasing
?g_nChaseMe &#60; time && g_strSpecial &#33;= &#34;GROUP_FLY&#34;&#58; g_bChaseMe = false
&#59; Human present, stop group landing
?g_bHuman &#58; g_bGroupLand = false

&#59; Update object and triggers position
g_xPosition = &#40;getPos g_oObject&#41; select 0
g_yPosition = &#40;getPos g_oObject&#41; select 1
g_oTrigger setPos &#40;getPos g_oObject&#41;
goto &#34;MainLoop&#34;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Destruction
#Destruction
; Games over
g_bChase = false
; Wait for seagulls to report
@<hidden>&#40;g_nExitReport == g_nSeagull&#41;

; Destroy seagulls
_i = g_nSeagull - 1
#DestructionLoop
camDestroy &#40;g_aSeagull select _i&#41;
_i = _i - 1
?_i &#62; -1 &#58; goto &#34;DestructionLoop&#34;

goto &#34;Terminate&#34;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
#Terminate
exit[/QUOTE]

Winters
Aug 9 2003, 00:21
oooooh me gonna try it out http://forums.bistudio.com/oldsmileys/biggrin_o.gif

TheRedBaron
Aug 10 2003, 04:41
The reason i havent seen the bird is that i just got high speed internet and didnt like playing on 56k,by the way ty for script
http://forums.bistudio.com/oldsmileys/smile_o.gif