Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Welcome, Guest
Wednesday 22nd May 2013, 20:42:39
Home
Help
Search
Login
Register
OFPEC Forum
OFPEC Forum
»
Editors Depot - Mission Editing and Scripting
»
ArmA - Editing/Scripting Resources Beta Testing & Submission
(Moderators:
h-
,
i0n0s
,
Worldeater
) »
Standing up? Crouch? Prone? check with mando_getpos.sqf (ACCEPTED)
Pages:
1
[
2
]
All
Go Down
« previous
next »
Send this topic
Print
Author
Topic: Standing up? Crouch? Prone? check with mando_getpos.sqf (ACCEPTED) (Read 2759 times)
0 Members and 1 Guest are viewing this topic.
Mandoble
Editors Depot
Administrator
Offline
Re: Standing up? Crouch? Prone? check with mando_getpos.sqf
«
Reply #15 on:
05 Sep 2007, 19:21:35 »
Yes, you are wrong, the script is not depending on any floating point return value from any model
which floating points returned by any model are you talking about?
Logged
The Triple Blow
|
ArmA Videos
|
Mando Missile ArmA
ColonelSandersLite
Offline
Re: Standing up? Crouch? Prone? check with mando_getpos.sqf
«
Reply #16 on:
05 Sep 2007, 19:34:07 »
Oh, I see. This is caused by me mixing your script and manday's scripts together in my head I think.
You're detecting if the model intersects a line at various altitudes, right? Hence the "_alts = [1.4, 1, 0.2];". This still means that gigantous and tiny models (there where some of those for ofp that I just couldn't stop lauging at ever) will bug but in general it's not a big issue for most purposes. Is that understanding correct?
Now, manday's *does* return a floating point indicator of the unit's "spine2". Meaning that if the unit is made differently then the bis units, it's bounds may change to the unexpected. Is that understanding correct?
If both of those are correct understandings, then clearly your method is far superior.
Logged
Everything I have released for ARMA can be found
here
.
Mandoble
Editors Depot
Administrator
Offline
Re: Standing up? Crouch? Prone? check with mando_getpos.sqf
«
Reply #17 on:
05 Sep 2007, 19:47:59 »
Yes, these are altitudes to check. Obviously the script is designed to work with normal human units, but in case you need to check the position of a colosus you may modify them at will.
ManDay uses a different aproach, he checks for the existance of a "spine" named section which should be intersected by a vertical rect over the unit, but the _float_spinePos is returned by the intersect command, not by the model config, it is a dynamic value.
Logged
The Triple Blow
|
ArmA Videos
|
Mando Missile ArmA
Pages:
1
[
2
]
All
Go Up
Send this topic
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
OFPEC The Editing Center
-----------------------------
=> General Announcements
=> Comments & Suggestions
=> Getting help with BI games
-----------------------------
Editors Depot - Mission Editing and Scripting
-----------------------------
=> Arma3 Alpha - Editing/Scripting General
=> Arma3 Alpha - Editing/Scripting Multiplayer
=> Arma3 Alpha - Editing/Scripting Resources Beta Testing & Submission
=> Arma2 - Editing/Scripting General
=> Arma2 - Editing/Scripting Multiplayer
=> Arma2 - Editing/Scripting Resources Beta Testing & Submission
=> ArmA - Editing/Scripting General
=> ArmA - Editing/Scripting Multiplayer
=> ArmA - Editing/Scripting Resources Beta Testing & Submission
=> OFP - Editing/Scripting General
=> OFP - Editing/Scripting Multiplayer
=> OFP - Editing/Scripting Resources Beta Testing & Submission
=> OFP Elite - Editing General
-----------------------------
Missions Depot
-----------------------------
=> Arma3 Alpha - Single Player Beta Testing
=> Arma3 Alpha - Multiplayer Beta Testing
=> Arma2 - Single Player Beta Testing
=> Arma2 - Multiplayer Beta Testing
=> ArmA - Single Player Beta Testing
=> ArmA - Multiplayer Beta Testing
=> OFP - Missions Beta Testing
=> OFPEC Campaign
=> Mission Discussion
===> Arma3 Alpha - Reviewed Missions
===> Arma2 - Reviewed Missions
===> ArmA - Reviewed Missions
===> OFP - Reviewed Missions
-----------------------------
Addons & Mods Depot
-----------------------------
=> Arma3 Alpha - Configs & Scripting
=> Arma3 Alpha - O2 and Models/Modelling
===> Arma3 Alpha - Texturing
=> Arma2 - Configs & Scripting
=> Arma2 - O2 and Models/Modelling
===> Arma2 - Texturing
=> Arma2 - Visitor 3 and Terrain Editing
=> Arma2 - Addons & Mods Beta Testing
=> Arma2 - Addons & Mods Discussion
=> ArmA - Configs & Scripting
=> ArmA - O2 and Models/Modelling
===> ArmA - Texturing
=> ArmA - Visitor 3 and Terrain Editing
=> ArmA - Addons & Mods Beta Testing
=> ArmA - Addons & Mods Discussion
=> OFP - Addons & Mods General
=> OFP - Addons & Mods Beta Testing
=> OFPEC Hosted Addons
Top of page