Welcome to Open Carnage

A resource for modders and technology enthusiasts; have a wander to see why we're worth the time! EST. 2012

bigblue

Taxi

Members of Open Carnage never see off-site ads.

Brilliant.. thank you :)

 

1. Could I ask how to only load this script on certain maps - eg. how to add to the events file rather than loading it through the sapp init which would affect all maps/games ?

Say I only want the script loaded on 'map1' and 'map2' - something like:

event_start $map:map1 map2 'lua_load "taxi_v3_for_sapp" '

No idea if that's the correct way to do it though ? Could I also add in a gametype for a certain map ?

 

2. Is there any way to disable the crouch use - and just use the 'taxi' text command ? So annoying trying to actually crouch and then ending up in a hog..

 

Any help appreciated.

 

Thx :)

Edited by bigblue

Share this post


Link to post
Share on other sites
On 11/30/2018 at 7:30 AM, bigblue said:

Brilliant.. thank you :)

 

1. Could I ask how to only load this script on certain maps - eg. how to add to the events file rather than loading it through the sapp init which would affect all maps/games ?

Say I only want the script loaded on 'map1' and 'map2' - something like:


event_start $map:map1 map2 'lua_load "taxi_v3_for_sapp" '

No idea if that's the correct way to do it though ? Could I also add in a gametype for a certain map ?

 

2. Is there any way to disable the crouch use - and just use the 'taxi' text command ? So annoying trying to actually crouch and then ending up in a hog..

 

Any help appreciated.

 

Thx :)

You are close, you would have to do it like this.

event_start $map:map1 'lua_load "taxi_v3_for_sapp"'

event_end $map:map1 'lua_unload "taxi_v3_for_sapp"'

 

event_start $map:map2 'lua_load "taxi_v3_for_sapp"'

event_end $map:map2 'lua_unload "taxi_v3_for_sapp"'

Do this for each map you want the lua script on.

Tucker933 likes this

Share this post


Link to post
Share on other sites

Thx :)

 

Note that I don't necessarily want the taxi on the same game on another map - so to add in a gametype just for a given map, would the following be correct ?

 

event_start $map:map1 $mode:game1 'lua_load "taxi_v3_for_sapp"' '
event_end $map:map1 $mode:game1 'lua_unload "taxi_v3_for_sapp"' '

 

Many thanks

Vic Firth likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.