Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2008-05-01 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
May 01, 2008, 07:54:03 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: WCS Tournament being opened for applications!

Post here for signups!
Google  
  Home   Forum   Help Search Login Register   *
Pages: [1]   Go Down
  Print  
Author Topic: question to the master of sfx ;)  (Read 80 times)
mobsi
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 82



« on: April 28, 2008, 08:17:06 PM »

well first of all HI

my question is if it is possible to make sfx with help of mathematical functions like   

--->  x^4=x^2+y^2+z^2

greez mobsi
Logged
Frodo
WCS ESP Dev Team
Level 7 Expert

Offline Offline

Posts: 775


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #1 on: April 28, 2008, 08:22:05 PM »

yes you can do it before calling an effect command
Logged

Goodbye. If you still want to contact me, write on [email protected].
mobsi
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 82



« Reply #2 on: April 28, 2008, 08:44:52 PM »

and if now someone (holliday) ^^ can show me how to do that i ll try it

btw if someone already know how to do it

try thisone --> x^2+y^2+z^2+1500*(x^2+y^2)*(x^2+z^2)*(y^2+z^2)-1=0
« Last Edit: April 28, 2008, 08:52:21 PM by mobsi » Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1569



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 72.249.51.26:27015
(Warning: click connects through Steam)
« Reply #3 on: April 28, 2008, 09:29:53 PM »

what are you trying to do exactly?
you can do all your math functions with es_math


Syntax: es_math <variable> <operator> <value1> [value2]
Logged

Frodo
WCS ESP Dev Team
Level 7 Expert

Offline Offline

Posts: 775


Actinosphaerium eichhorni


WWW
ckenduro
aulix
« Reply #4 on: April 29, 2008, 12:17:03 PM »

Actually this math operation will take years with es_math. Use es_mathparse. Remember that there are a lot of functions and built-in variables so you can use them here... Also you don't need to put server_var(xxxx) to access a server variable, just put the name... Important: as far as I know you can't use event_vars so just copy it to server_var.

I won't post how long would be your operation with es_math, but here's es_mathparse...

Code
GeSHi (eventscripts):
es_mathparse some_var "x^2+y^2+z^2+1500*(x^2+y^2)*(x^2+z^2)*(y^2+z^2)-1"

http://eventscripts.com/pages/Es_mathparse
Logged

Goodbye. If you still want to contact me, write on [email protected].
HOLLIDAY
<Race Maker>
Moderator
Level 7 Expert
*****
Offline Offline

Posts: 1569



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 72.249.51.26:27015
(Warning: click connects through Steam)
« Reply #5 on: April 29, 2008, 03:55:15 PM »

i guess i dont understand what all that is

what would you use this for, and what will it do?
Logged

mobsi
Level 4 Intermediate
****
Offline Offline

Germany Germany

Posts: 82



« Reply #6 on: April 30, 2008, 04:16:14 PM »

well perhaps you know that there are functions to create some dunno how it is called lets say objects and i was just questioning myself if it will work in the wcs mod
hmm i cant find any pictures of it in the web
and how do i tell the sfx to work with such a function? ^^

but you can if you want DL a program that shows you what i mean ^^ but its in german
http://kommentare.zeit.de/files/downloads/surfer-setup.exe


E: but i have to put the code into an extra file or into the WCSultimate_db havent I?
    cause the racescript wont execute the command with es_mathparse due to the " "
« Last Edit: April 30, 2008, 04:30:17 PM by mobsi » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
April 30, 2008, 11:39:24 AM
HOLLIDAYS botchangerace script is also to be found in the downloads section
April 30, 2008, 11:34:31 AM
WCS Map CageFight added into Downloads
April 30, 2008, 01:54:03 AM
Yea cause WCSP is the future and I almost got backwards support fully working so very little reason not to use it over 0.7x now...

~J3ff
April 30, 2008, 12:27:18 AM
They were DIFFERENT links: n0Life gave link to WCS 0.77 and J3ff gave link to WCS:Python
April 29, 2008, 09:53:54 PM
i meant, That n0life Gave a link...
April 29, 2008, 09:52:53 PM
Jeff why the Double post?
April 29, 2008, 09:48:46 PM
Recent
[Today at 07:51:55 PM]

[Today at 07:46:36 PM]

[Today at 07:02:44 PM]

[Today at 06:58:30 PM]

[Today at 06:56:40 PM]

[Today at 06:49:58 PM]

[Today at 05:11:43 PM]

[Today at 03:46:09 PM]

[Today at 11:33:58 AM]

[Today at 11:28:48 AM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.06 seconds with 27 queries.