Login x
User Name:
Password:
Social Links Facebook Twitter YouTube Steam RSS News Feeds

Members Online

»
0 Active | 14 Guests
Online:

LATEST FORUM THREADS

»
CoD: Battle Royale
CoD+UO Map + Mod Releases
Damaged .pk3's
CoD Mapping
heli to attack ai
CoD4 SP Mapping

Forums

»

Welcome to the MODSonline.com forums. Looking for Frequently Asked Questions? Check out our FAQs section or search it out using the SEARCH link below. If you are new here, you may want to check out our rules and this great user's guide to the forums and the website.
For more mapping and modding information, see our Wiki: MODSonWiki.com

Jump To:
Forum: All Forums : Call of Duty
Category: CoDUO Mapping
CoD United Offensive mapping and level design.
Moderators: foyleman, Foxhound, Mystic, StrYdeR, batistablr, Welshy, DrBiggzz, supersword
Latest Posts
Subscribed Posts
Search
Restricted Access Topic is Locked subscribe
Author Topic: A HQ GAMTYPE PHP TOOL
Goshawk
General Member
Since: Mar 1, 2007
Posts: 21
Last: Jan 7, 2009
[view latest posts]
Level 1
Category: CoDUO Mapping
Posted: Sunday, Feb. 10, 2008 08:32 am
I can't sleep so I am throwing up this post this early sunday morning.

If anyone ever feels like adding new radios to stock maps or even to their own maps via script then you may have a use for this php script I wrote last week for "fun and mental exercise"

If you have a web server that runs php just create a php file out of this script.

Method of Use - Run COD in minimized window and access the script via your web browser. When you hit console and run your viewpos command you will be able to move your cursor to the browser window without interference.

Each location you do a viewpos for enter the coordinates into the forms and submit the info. The adjustments will automatically be made to reposition the radios height. The info will be written to a txt file named after mapname.

Why am I HQ obesssed you may ask? I don't know. It reminds me of rugby. Each radio is like a breakdown. When a new radio appears its time to get your hustle on! Theres guys everywhere and you gotta stay sharp!

If you ever get a chance come drop by {[SACK]}(NO TANKS!!) and try my Fast Action HQ Mod!

I hope this code presents itself properly when you view it in this tutorial. I doubt many if any will ever use this but what the hell, here ya go. :P

IMPORTANT!!!!! - COPY INTO NOTEPAD AND USE CONTROL-H TO REPLACE THE <- WITH JUST <, AND THE -> WITH JUST >

WHEN ADDING TO YOUR GSC FILES DONT FORGET TO FORMAT YOUR IF STATEMENT

if (getcvar("g_gametype") == "hq")
{
radios go here
}

Still a little lost? Please read my other tutorials on HQ modding.

Goshawk | www.freewebs.com/cod-force316
__________________________________________________________________________________

<-html-><-head-><-/head-><-body->

<-?php

$mapname=$_POST['mapname'];;
$xloc=$_POST['xloc'];
$yloc=$_POST['yloc'];
$zloc=$_POST['zloc'];
$fzloc=$zloc-60;
$vloc=$_POST['vloc'];

fopen("$mapname.txt", a);
$file_pointer=fopen("$mapname.txt", a);

$radio="radio = spawn (\"script_model\", (0,0,0));
radio.origin = ($xloc, $yloc, $fzloc);
radio.angles = (0, $vloc, 0);
radio.targetname = \"hqradio\";

";

echo "<-form action=\"hq.php\" name=\"hq\" id=\"hq\" title=\"hq\" method=\"post\"->
<-table cellspacing=\"2\" border=\"0\" class=\"formtablewrap\"->

<-tr-><-td class=\"formtableleft\"->Mapname
<-input type=\"text\" name=\"mapname\" id=\"mapname\" value=\"$mapname\" class=\"formcontact\"->
<-/td-><-/tr->

<-tr-><-td class=\"formtableleft\"->X Coordinate
<-input type=\"text\" name=\"xloc\" id=\"xloc\" value=\"$xloc\" class=\"formcontact\"->
<-/td-><-/tr->

<-tr-><-td class=\"formtableleft\"->Y Coordinate
<-input type=\"text\" name=\"yloc\" id=\"yloc\" value=\"$yloc\" class=\"formcontact\"->
<-/td-><-/tr->

<-tr-><-td class=\"formtableleft\"->Z Coordinate
<-input type=\"text\" name=\"zloc\" id=\"zloc\" value=\"$zloc\" class=\"formcontact\"->
<-/td-><-/tr->

<-tr-><-td class=\"formtableleft\"->Direction
<-input type=\"text\" name=\"vloc\" id=\"vloc\" value=\"$vloc\" class=\"formcontact\"->
<-/td-><-/tr->

<-tr-><-td class=\"formtableleft\"->
<-input type=\"submit\" value=\"Submit\"->
<-/td-><-/tr->

<-/table->
<-/form->";

echo "radio = spawn (\"script_model\", (0,0,0));<-br->
radio.origin = ($xloc, $yloc, $fzloc);<-br->
radio.angles = (0, $vloc, 0);<-br->
radio.targetname = \"hqradio\";<-br-><-br->";

fputs($file_pointer,$radio);

?->

<-/body-><-/html->

edited on Feb. 10, 2008 03:40 am by Goshawk
Share |
Restricted Access Topic is Locked subscribe
MODSonline.com Forums : Call of Duty : CoDUO Mapping

Latest Syndicated News

»
Codutility.com up and runn...
Nice, and there still using the logo and template for the screenshots, which...
Codutility.com up and runn...
dundy writes...Quote:Call of Duty modding and mapping is barly alive only a ...
Codutility.com up and runn...
Mystic writes...Quote:It seems to me the like the site is completely dead? ...
Codutility.com up and runn...
It seems to me the like the site is completely dead?

Partners & Friends

»