Difference between revisions of "Scripting / Modding"

From Oldunreal-Wiki
Jump to navigation Jump to search
 
(28 intermediate revisions by 12 users not shown)
Line 1: Line 1:
== Teleportation Projectile ==
This section of the wiki contains scripting help, script examples and tutorials about Uscript and mod-making.


''Note: I did NOT create this, I only found it on some tutorial dated about 2002 with no author attached, so I figured it would be ok to share it with everyone. The only parts I did change were the comments in the code, to allow the player to understand what each line does. Just Sub-Class TazerProj and copy this code to make it work.
==== Unreal / Unreal Tournament ====
''


*[[227 Compiler directives]] (mostly 227j+)
*[[Teleportation Projectile]] (any version)
*[[Reloadable Automag]] (any version)
*[[Importing vertex meshes into Unreal]]
*[[Font Tutorial]] : how to import and create ne fonts for use in Unreal, originally intended to permit the creation of cyrillic or asian fonts.
*[[Multiple firing modes on a weapon]]
*[[Transformation]], a mod idea to bring back an aborted idea that was present in older Unreal betas (1995).
*[[Dynamic array]]
*[[Color Codes]] - how to make colorized text
*[[Weapon of destruction]] Unreal Script Tutorial
*[[Chimeric]]'s tutorials
*[[CompilingNativeMods|Compiling native modes]] for Linux.
*[[UnrealScript_Syntax]] UnrealScript Syntax
*[[Academic Resources for the Unreal Development Environment]]
*[[Registry entries]]
*[[Localization]]


*[[UWindow Menus]] (227f recommended)
*[[Travelling functions]] (227g onwards only)


== Unreal Tournament ==
*[[Single player ladder]]: How to create your own UT SP ladder.
==== Unreal II ====
*[[Unreal II UCC]] - information about UCC of Unreal II.
*[[Dialog Editor]] - Information about the Dialog Editor included in Unreal II.


class TeleProj expands TazerProj;


var() float    Speed;
[[Category:Scripting]]
 
[[Category:Mods]]
 
function SuperExplosion()
{
 
// This next line will hurt everyone within 240 units by 3.9x the regular damage
 
HurtRadius(Damage*3.9, 240, 'jolted', MomentumTransfer*2, Location );
 
Destroy();
}
 
 
function Explode(vector HitLocation,vector HitNormal)
{
 
// Play the Explosion sound.
 
PlaySound(ImpactSound, SLOT_Misc, 0.5,,, 0.5+FRand()); 
 
 
// Hurt everyone 70 units away.
 
HurtRadius(Damage, 70, 'jolted', MomentumTransfer, Location );
 
 
// If the damage is high, make a big explosion.
 
if (Damage > 60) Spawn(class'RingExplosion2',,, HitLocation+HitNormal*8,rotator(HitNormal));
 
 
// Make teleport sparkles.
 
Spawn ( class 'PawnTeleportEffect',,, Instigator.Location ); 
 
 
// Make teleport sparkles where you will end up.
 
Spawn ( class 'PawnTeleportEffect',,, Location ); 
 
 
// Here, you are transported to wherever you hit.
 
Instigator.SetLocation(Location);     
 
 
// This destroys the projectile.
 
Destroy();
 
}

Latest revision as of 16:34, 26 July 2022

This section of the wiki contains scripting help, script examples and tutorials about Uscript and mod-making.

Unreal / Unreal Tournament

Unreal Tournament

Unreal II