RequestScriptPuke

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
fr blood
Frequent Poster Miles card holder
Posts: 995
Joined: Wed Mar 06, 2013 4:04 pm
Location: France

RequestScriptPuke

#1

Post by fr blood » Fri Apr 03, 2015 8:44 am

Here is my question about this new option from Zand 2.0 that is suppose to replace ConsoleCommand("puke %%").

With the old way we were able to force the script to execute by using a negativ number like that:
ConsoleCommand("puke -635"); = ACS_ExecuteAlways(635,0,0,0,0);

So how can we force the script to execute with this new option ? Thanks.

User avatar
ZZYZX
Posts a lot
Posts: 742
Joined: Thu Jun 07, 2012 5:56 pm
Location: Ukraine
Clan: A3
Clan Tag: [A3]

RE: RequestScriptPuke

#2

Post by ZZYZX » Fri Apr 03, 2015 10:46 am

Code: Select all

script 636 (int a0, int a1, int a2)
{
  ACS_ExecuteAlways(635, 0, a0, a1, a2);
}

/* ..... */

RequestScriptPuke(636, 1, 2,3)
Last edited by ZZYZX on Fri Apr 03, 2015 10:46 am, edited 1 time in total.

Thomas
 
Posts: 51
Joined: Fri Jun 22, 2012 9:41 am

RE: RequestScriptPuke

#3

Post by Thomas » Fri Apr 03, 2015 10:57 am

Circunei Z wrote:

Code: Select all

script 636 (int a0, int a1, int a2)
{
  ACS_ExecuteAlways(635, 0, a0, a1, a2);
}

/* ..... */

RequestScriptPuke(636, 1, 2,3)
But will this also work if, say, 2 players request at the exact same time (in the same tic).

Edward-san
Developer
Posts: 382
Joined: Fri May 25, 2012 8:14 pm

RE: RequestScriptPuke

#4

Post by Edward-san » Fri Apr 03, 2015 12:35 pm

Make sure script 636 is NET and the 'RequestScriptPuke' call is done in a CLIENTSIDE script. See http://wiki.zandronum.com/RequestScriptPuke .

User avatar
fr blood
Frequent Poster Miles card holder
Posts: 995
Joined: Wed Mar 06, 2013 4:04 pm
Location: France

RE: RequestScriptPuke

#5

Post by fr blood » Fri Apr 03, 2015 2:04 pm

Ok thanks, for the help, I'm gonna try it on my project, and give you some news.

Post Reply